Index: tests/corelib/iterable_fold_test.dart |
diff --git a/tests/corelib/iterable_fold_test.dart b/tests/corelib/iterable_fold_test.dart |
index c9b34eed3753676a5a6f45c413a2b7ea32df8f7d..f1875238f79935d8a37b41c3ee3fe6bb61fbd8be 100644 |
--- a/tests/corelib/iterable_fold_test.dart |
+++ b/tests/corelib/iterable_fold_test.dart |
@@ -123,8 +123,7 @@ main() { |
}, (e) => e is ConcurrentModificationError); |
} |
- void add4(collection) { if (collection.length < 10) collection.add(4); } |
- void addList4(collection) { if (collection.length < 10) collection.add([4]); } |
+ void add4(collection) { collection.add(4); } |
void put4(map) { map[4] = 4; } |
testModification([1, 2, 3], add4, id); |
@@ -135,7 +134,7 @@ main() { |
testModification([0, 1, 2, 3], add4, (x) => x.where((x) => x > 0)); |
testModification([0, 1, 2], add4, (x) => x.map((x) => x + 1)); |
- testModification([[1, 2], [3]], addList4, (x) => x.expand((x) => x)); |
+ testModification([[1, 2], [3]], add4, (x) => x.expand((x) => x)); |
testModification([3, 2, 1], add4, (x) => x.reversed); |
testModification({1: 1, 2: 2, 3: 3}, put4, (x) => x.keys); |
testModification({1: 1, 2: 2, 3: 3}, put4, (x) => x.values); |