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

Unified Diff: tests/corelib/collection_length_test.dart

Issue 12611014: Cleanups in collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
Index: tests/corelib/collection_length_test.dart
diff --git a/tests/corelib/collection_length_test.dart b/tests/corelib/collection_length_test.dart
index e98cb1b7f129d0d4f541a44f58683d0ee6e21d1d..8c468c45b752d1f331f74f91fcba75df0439cf10 100644
--- a/tests/corelib/collection_length_test.dart
+++ b/tests/corelib/collection_length_test.dart
@@ -41,6 +41,7 @@ void testCollection(Collection collection, n) {
}
void testList(List list, n) {
+ // Works even if list is fixed-length.
for (int i = 0; i < n; i++) {
list[i] = i;
}
@@ -68,8 +69,8 @@ main() {
testCollection(new HashSet(), N);
testCollection(new LinkedHashSet(), N);
testCollection(new ListQueue(), N);
+ testCollection(new DoubleLinkedQueue(), N);
testList(new List()..length = N, N);
testList(new List(N), N);
testString(N);
- // DoubleLinkedQueue has linear length, but fast isEmpty.
}

Powered by Google App Engine
This is Rietveld 408576698