Index: tests/corelib/futures_test.dart |
diff --git a/tests/corelib/futures_test.dart b/tests/corelib/futures_test.dart |
index c3f48fb2743c5e67c148191ba7f07d9ff6007bc0..70a54bfbb441970442a79bf2079eb1f80e411e9d 100644 |
--- a/tests/corelib/futures_test.dart |
+++ b/tests/corelib/futures_test.dart |
@@ -28,7 +28,9 @@ Future testCompleteBeforeWait() { |
} |
Future testForEachEmpty() { |
- return Futures.forEach([], (_) => throw 'should not be called'); |
+ return Futures.forEach([], (_) { |
+ throw 'should not be called'; |
+ }); |
} |
Future testForEach() { |
@@ -45,7 +47,9 @@ Future testForEachWithException() { |
if (n == 4) throw 'correct exception'; |
seen.add(n); |
return new Future.immediate(null); |
- }).transform((_) => throw 'incorrect exception').transformException((e) { |
+ }).transform((_) { |
+ throw 'incorrect exception'; |
+ }).transformException((e) { |
Expect.equals('correct exception', e); |
}); |
} |