Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: tests/corelib/iterable_reduce_test.dart

Issue 1064053007: Revert "Change ListIterator to only check for concurrent modification at each iteration" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/corelib/iterable_fold_test.dart ('k') | tests/corelib/json_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/iterable_reduce_test.dart
diff --git a/tests/corelib/iterable_reduce_test.dart b/tests/corelib/iterable_reduce_test.dart
index a484365da60d61ea50003431ea07d5d702090bb3..492ce9c6871937754d715094d977b0a5ebce43f2 100644
--- a/tests/corelib/iterable_reduce_test.dart
+++ b/tests/corelib/iterable_reduce_test.dart
@@ -125,9 +125,7 @@ main() {
}, (e) => e is ConcurrentModificationError);
}
- // Add elements, but not infinitely often.
- 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);
@@ -138,7 +136,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);
« no previous file with comments | « tests/corelib/iterable_fold_test.dart ('k') | tests/corelib/json_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698