Index: tests/corelib_strong/iterable_empty_test.dart |
diff --git a/tests/corelib_strong/iterable_empty_test.dart b/tests/corelib_strong/iterable_empty_test.dart |
index 75adfa7e0052055199262f2238cac4f3a04b139f..79221982f51742a82193f8188169d839ca078785 100644 |
--- a/tests/corelib_strong/iterable_empty_test.dart |
+++ b/tests/corelib_strong/iterable_empty_test.dart |
@@ -10,15 +10,15 @@ main() { |
Expect.isFalse(it.isNotEmpty, name); |
Expect.equals(0, it.length, name); |
Expect.isFalse(it.contains(null), name); |
- Expect.isFalse(it.any((x)=>true), name); |
- Expect.isTrue(it.every((x)=>false), name); |
+ Expect.isFalse(it.any((x) => true), name); |
+ Expect.isTrue(it.every((x) => false), name); |
Expect.throws(() => it.first, (e) => e is StateError, name); |
Expect.throws(() => it.last, (e) => e is StateError, name); |
Expect.throws(() => it.single, (e) => e is StateError, name); |
Expect.throws(() => it.elementAt(0), (e) => e is RangeError, name); |
Expect.throws(() => it.reduce((a, b) => a), (e) => e is StateError, name); |
- Expect.throws(() => it.singleWhere((_) => true), |
- (e) => e is StateError, name); |
+ Expect.throws( |
+ () => it.singleWhere((_) => true), (e) => e is StateError, name); |
Expect.equals(42, it.fold(42, (a, b) => "not 42"), name); |
Expect.equals(42, it.firstWhere((v) => true, orElse: () => 42), name); |
Expect.equals(42, it.lastWhere((v) => true, orElse: () => 42), name); |
@@ -35,9 +35,9 @@ main() { |
} |
// Check that returned iterables are also empty. |
if (depth > 0) { |
- testEmpty("$name-map", it.map((x)=>x), depth - 1); |
- testEmpty("$name-where", it.where((x)=>true), depth - 1); |
- testEmpty("$name-expand", it.expand((x)=>[x]), depth - 1); |
+ testEmpty("$name-map", it.map((x) => x), depth - 1); |
+ testEmpty("$name-where", it.where((x) => true), depth - 1); |
+ testEmpty("$name-expand", it.expand((x) => [x]), depth - 1); |
testEmpty("$name-skip", it.skip(1), depth - 1); |
testEmpty("$name-take", it.take(2), depth - 1); |
testEmpty("$name-skipWhile", it.skipWhile((v) => false), depth - 1); |
@@ -49,11 +49,11 @@ main() { |
Expect.isTrue(it is Iterable<int>, name); |
Expect.isFalse(it is Iterable<String>, name); |
if (depth > 0) { |
- testType("$name-where", it.where((_)=>true), depth - 1); |
+ testType("$name-where", it.where((_) => true), depth - 1); |
testType("$name-skip", it.skip(1), depth - 1); |
testType("$name-take", it.take(1), depth - 1); |
- testType("$name-skipWhile", it.skipWhile((_)=>false), depth - 1); |
- testType("$name-takeWhile", it.takeWhile((_)=>true), depth - 1); |
+ testType("$name-skipWhile", it.skipWhile((_) => false), depth - 1); |
+ testType("$name-takeWhile", it.takeWhile((_) => true), depth - 1); |
testType("$name-toList", it.toList(), depth - 1); |
testType("$name-toList", it.toList(growable: false), depth - 1); |
testType("$name-toList", it.toList(growable: true), depth - 1); |
@@ -69,4 +69,3 @@ main() { |
test("const", const Iterable<int>.empty()); |
test("new", new Iterable<int>.empty()); |
} |
- |