Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: test/codegen/syncstar_syntax.dart

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/language/syncstar_yieldstar_test.dart ('k') | test/codegen/syncstar_yield_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « test/codegen/language/syncstar_yieldstar_test.dart ('k') | test/codegen/syncstar_yield_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698