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

Unified Diff: tests/corelib/queue_test.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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/queue_test.dart
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart
index 1b91ff61c22b1a34a75d269d9549c0c64116ed46..298b1e8e48b79dd478d1969efe8cf1e13987b8bf 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -48,7 +48,7 @@ class QueueTest {
Expect.equals(100, mapped.removeLast());
Expect.equals(10, mapped.removeFirst());
- Queue other = queue.where(is10);
+ Queue other = new Queue.from(queue.where(is10));
checkQueue(other, 1, 10);
Expect.equals(true, queue.some(is10));
@@ -98,7 +98,7 @@ class QueueTest {
return (value > 1);
}
- other = queue.where(isGreaterThanOne);
+ other = new Queue.from(queue.where(isGreaterThanOne));
checkQueue(other, 2, 5);
testAddAll();

Powered by Google App Engine
This is Rietveld 408576698