| Index: test/codegen/syncstar_syntax.dart
|
| diff --git a/test/codegen/syncstar_syntax.dart b/test/codegen/syncstar_syntax.dart
|
| index e5331dddd13a92fac1ca85627558acc044feea31..0c7efc9c40d7627c2d5e04a8f2e10fcc5f335f81 100644
|
| --- a/test/codegen/syncstar_syntax.dart
|
| +++ b/test/codegen/syncstar_syntax.dart
|
| @@ -2,6 +2,8 @@
|
| // 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.
|
|
|
| +import 'package:expect/expect.dart';
|
| +
|
| Iterable<int> foo() sync* {
|
| yield 1;
|
| yield* [2, 3];
|
| @@ -25,8 +27,8 @@ main() {
|
| yield* [2, 3];
|
| }
|
|
|
| - foo().forEach(print);
|
| - new Class().bar().forEach(print);
|
| - Class.baz().forEach(print);
|
| - qux().forEach(print);
|
| + Expect.listEquals([1, 2, 3], foo().toList());
|
| + Expect.listEquals([1, 2, 3], new Class().bar().toList());
|
| + Expect.listEquals([1, 2, 3], Class.baz().toList());
|
| + Expect.listEquals([1, 2, 3], qux().toList());
|
| }
|
|
|