blob: 70d2cc5f265ff48f05ec9a5d78aaf2a1284d42c6 [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 IOSink(StreamConsumer<List<int>> target,
* { Encoding encoding: utf8 })
* Create an [IOSink] that outputs to a target [StreamConsumer] of bytes.
* @description Checks that new [IOSink] object with [utf8] encoding is created
* by default
* @author iarkh@unipro.ru
*/
import "../../../Utils/expect.dart";
import "dart:async";
import "dart:io";
import "dart:convert";
main() {
IOSink sink = new IOSink(new StreamController());
Expect.isTrue(sink.encoding is Utf8Codec);
sink.close();
}