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

Unified Diff: tests/corelib/set_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/set_iterator_test.dart ('k') | tests/corelib/sort_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/set_test.dart
diff --git a/tests/corelib/set_test.dart b/tests/corelib/set_test.dart
index 79821b59ffbe633c967830e2ec57b045edb36011..2a9cd1bf8a3aee73d2ba27667c27369d6bb0e686 100644
--- a/tests/corelib/set_test.dart
+++ b/tests/corelib/set_test.dart
@@ -51,7 +51,7 @@ class SetTest {
return val * val;
}
- Set mapped = set.map(testMap);
+ Set mapped = set.mappedBy(testMap).toSet();
Expect.equals(10, mapped.length);
Expect.equals(true, mapped.contains(0));
@@ -79,7 +79,7 @@ class SetTest {
return val.isEven;
}
- Set filtered = set.filter(testFilter);
+ Set filtered = set.where(testFilter).toSet();
Expect.equals(5, filtered.length);
@@ -112,10 +112,10 @@ class SetTest {
return (val == 4);
}
- Expect.equals(true, set.some(testSome));
- Expect.equals(true, filtered.some(testSome));
+ Expect.equals(true, set.any(testSome));
+ Expect.equals(true, filtered.any(testSome));
filtered.remove(4);
- Expect.equals(false, filtered.some(testSome));
+ Expect.equals(false, filtered.any(testSome));
// Test Set.intersection.
Set intersection = set.intersection(filtered);
@@ -138,7 +138,7 @@ class SetTest {
Expect.equals(true, intersection.isSubsetOf(filtered));
// Test Set.addAll.
- List list = new List(10);
+ List list = new List.fixedLength(10);
for (int i = 0; i < 10; i++) {
list[i] = i + 10;
}
« no previous file with comments | « tests/corelib/set_iterator_test.dart ('k') | tests/corelib/sort_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698