blob: 440f5ea04abbd030843e6be49b03d0d8673b3df3 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @assertion Future done
* This future is identical to the future returned by [close].
* @description Checks that returned [Future] is identical to one returned by
* the [close] method.
* @author iarkh@unipro.ru
*/
import "../../../Utils/expect.dart";
import "dart:async";
import "dart:io";
test(Stdout sink) { Expect.equals(sink.done, sink.close()); }
main() {
test(stdout);
test(stderr);
}