blob: dc59f7d4d76c716b1fe39794421a503aba54f4f3 [file] [log] [blame]
// Copyright (c) 2011, 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 Stream.fromIterable(Iterable<T> data)
/// Creates a single-subscription stream that gets its data from data.
/// The iterable is iterated when the stream receives a listener, and stops
/// iterating if the listener cancels the subscription.
/// @description Checks Stream interface methods
/// @author
import "dart:async";
import "allTests_A03.lib.dart";
main() {
test(<T>(Iterable<T> data) => new Stream<T>.fromIterable(data));