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

Unified Diff: tests/corelib/queue_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/queue_single_test.dart ('k') | tests/corelib/range_error_test.dart » ('j') | 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 0095f35890d63974ba8a81b535196d3239689276..953721bd25fa1e463073e0ac01fcf940566c594c 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -41,17 +41,17 @@ class QueueTest {
return (value == 10);
}
- Queue mapped = queue.map(mapTest);
+ Queue mapped = new Queue.from(queue.mappedBy(mapTest));
checkQueue(mapped, 3, 111);
checkQueue(queue, 3, 1110);
Expect.equals(1, mapped.removeFirst());
Expect.equals(100, mapped.removeLast());
Expect.equals(10, mapped.removeFirst());
- Queue other = queue.filter(is10);
+ Queue other = new Queue.from(queue.where(is10));
checkQueue(other, 1, 10);
- Expect.equals(true, queue.some(is10));
+ Expect.equals(true, queue.any(is10));
bool isInstanceOfInt(int value) {
return (value is int);
@@ -64,7 +64,7 @@ class QueueTest {
bool is1(int value) {
return (value == 1);
}
- Expect.equals(false, queue.some(is1));
+ Expect.equals(false, queue.any(is1));
queue.clear();
Expect.equals(0, queue.length);
@@ -98,7 +98,7 @@ class QueueTest {
return (value > 1);
}
- other = queue.filter(isGreaterThanOne);
+ other = new Queue.from(queue.where(isGreaterThanOne));
checkQueue(other, 2, 5);
testAddAll();
« no previous file with comments | « tests/corelib/queue_single_test.dart ('k') | tests/corelib/range_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698