blob: e79457b6abba1bf7acf8dd5b547ba1150a24427c [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 if
* separator is provided.
* @author ilya
*/
library join_A01_t02;
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('---qwe---'), s.join('---qwe---'));
}