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

Unified Diff: tests/corelib/queue_test.dart

Issue 12787003: Fix bug in queue_test. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/queue_test.dart
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart
index 2d443abcc4e938afd0232cb46e23091abe90c030..dd91cda14877866c64bb0201a5c8ccdbe3807263 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -117,6 +117,7 @@ abstract class QueueTest {
Expect.isTrue(queue.isEmpty);
testAddAll();
+ testLengthChanges();
testLarge();
testFromListToList();
}
@@ -198,7 +199,7 @@ abstract class QueueTest {
}
for (int i = 1; i <= 10; i++) {
- queue.addFirst(i);
+ queue.addFirst(11 - i);
testLength(10 + i, queue);
}
@@ -229,10 +230,10 @@ abstract class QueueTest {
queue.retainAll([1, 3, 5, 7, 9, 10]); // Remove 2 and 8.
testLength(17, queue);
- queue.removeMatching((x) = x == 7);
+ queue.removeMatching((x) => x == 7);
testLength(14, queue);
- queue.retainMatching((x) = x != 3);
+ queue.retainMatching((x) => x != 3);
testLength(11, queue);
Expect.listEquals([9, 1, 5, 9, 10, 1, 5, 9, 10, 1, 5], queue.toList());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698