Index: tests/language_strong/async_star_regression_fisk_test.dart |
diff --git a/tests/language_strong/async_star_regression_fisk_test.dart b/tests/language_strong/async_star_regression_fisk_test.dart |
index b46d90faa1fe5d37d899d95b293caf7671e32805..6651c926480f342798d3ae367f5128056b261508 100644 |
--- a/tests/language_strong/async_star_regression_fisk_test.dart |
+++ b/tests/language_strong/async_star_regression_fisk_test.dart |
@@ -24,21 +24,36 @@ main() { |
fugl(int count) async { |
res.add("fisk $count"); |
try { |
- await for(int i in fisk().take(count)) res.add(i); |
+ await for (int i in fisk().take(count)) res.add(i); |
} finally { |
res.add("done"); |
} |
} |
asyncStart(); |
- fugl(3).whenComplete(() => fugl(2)) |
+ fugl(3) |
+ .whenComplete(() => fugl(2)) |
.whenComplete(() => fugl(1)) |
.whenComplete(() { |
- Expect.listEquals( |
- ["fisk 3", "+fisk", 0, 1, "-fisk", "done", |
- "fisk 2", "+fisk", 0, 1, "-fisk", "done", |
- "fisk 1", "+fisk", 0, "-fisk", "done"], |
- res); |
+ Expect.listEquals([ |
+ "fisk 3", |
+ "+fisk", |
+ 0, |
+ 1, |
+ "-fisk", |
+ "done", |
+ "fisk 2", |
+ "+fisk", |
+ 0, |
+ 1, |
+ "-fisk", |
+ "done", |
+ "fisk 1", |
+ "+fisk", |
+ 0, |
+ "-fisk", |
+ "done" |
+ ], res); |
asyncEnd(); |
}); |
} |