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

Unified Diff: tests/corelib/collection_removes_test.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/co19/co19-runtime.status ('k') | tests/corelib/list_growable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/collection_removes_test.dart
diff --git a/tests/corelib/collection_removes_test.dart b/tests/corelib/collection_removes_test.dart
index 1914f6150655c9864ad6e76ad3ec462925bc5f24..d057ed865771c34d3f80d0232bea21aa88783e30 100644
--- a/tests/corelib/collection_removes_test.dart
+++ b/tests/corelib/collection_removes_test.dart
@@ -86,16 +86,16 @@ void main() {
];
for (var base in collections) {
for (var delta in collections) {
- testRemove(base.toList(growable: true));
+ testRemove(base.toList());
testRemove(base.toSet());
var deltaSet = delta.toSet();
- testRemoveAll(base.toList(growable: true), delta);
- testRemoveAll(base.toList(growable: true), deltaSet);
- testRetainAll(base.toList(growable: true), delta);
- testRetainAll(base.toList(growable: true), deltaSet);
- testRemoveMatching(base.toList(growable: true), deltaSet.contains);
- testRetainMatching(base.toList(growable: true),
+ testRemoveAll(base.toList(), delta);
+ testRemoveAll(base.toList(), deltaSet);
+ testRetainAll(base.toList(), delta);
+ testRetainAll(base.toList(), deltaSet);
+ testRemoveMatching(base.toList(), deltaSet.contains);
+ testRetainMatching(base.toList(),
(e) => !deltaSet.contains(e));
testRemoveAll(base.toSet(), delta);
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/corelib/list_growable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698