Index: tests/language_2/async_star_pause_test.dart |
diff --git a/tests/language/async_star_pause_test.dart b/tests/language_2/async_star_pause_test.dart |
similarity index 82% |
rename from tests/language/async_star_pause_test.dart |
rename to tests/language_2/async_star_pause_test.dart |
index d8cabd6a93b1b3fc9d0a834a6db87e9c57bcf485..8adad621fad82cd1e57ba1f8d231c8bef2ff5e69 100644 |
--- a/tests/language/async_star_pause_test.dart |
+++ b/tests/language_2/async_star_pause_test.dart |
@@ -4,11 +4,13 @@ |
library async_star_pause_test; |
-import "package:unittest/unittest.dart"; |
+import "package:async_helper/async_helper.dart"; |
+import "package:expect/expect.dart"; |
import "dart:async"; |
main() { |
- test("await for pauses stream during body", () async { |
+ // await for pauses stream during body. |
+ asyncTest(() async { |
// Assumes await-for uses streamIterator. |
var log = []; |
var s = () async* { |
@@ -24,7 +26,7 @@ main() { |
await nextMicrotask(); |
log.add("$i!"); |
} |
- expect(log, [ |
+ Expect.listEquals(log, [ |
"0-", |
"0?", |
"0!", |