blob: 197875280589202785bc0df5cbdc790bd253634d [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 void add(T chunk)
/// Adds chunked data to this sink.
///
/// This method is also used when converters are used as StreamTransformers.
/// @description Checks that this method adds data to the [ByteConversionSink]
/// @Issue 29329 (see ChankedConversionSink/close_A01_t01)
/// @author sgrekhov@unipro.ru
import "dart:convert";
import "allTests.lib.dart" as all_tests;
ChunkedConversionSink create(ChunkedConversionSink<List<int>> outSink) {
StringConversionSink inSink = utf8.encoder.startChunkedConversion(outSink);
return utf8.decoder.startChunkedConversion(inSink);
}
main() {
all_tests.test(create);
}