blob: c6ca020bdae00e0efdfd8c5cd07e02f86a80c4d6 [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 Future<String> join([String separator = ""])
* Collects string of data events' string representations.
* If separator is provided, it is inserted between any two elements.
* @description Checks that it joins string representations correctly.
* @author ilya
*/
library join_A01_t01;
import "dart:async";
import "../../../Utils/expect.dart";
void test(CreateStreamFunction create) {
List iterable = [1, null, false, true, 'string', #symbol, (x) => x++];
iterable.add(iterable); // add self reference
Stream s = create(iterable);
AsyncExpect.value(iterable.join(), s.join());
}