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

Unified Diff: tests/corelib/set_test.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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_test.dart ('k') | tests/language/generic_native_test.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 ce0caf666e6838d6f68d4be43abb4a7f4ad5c952..5acb8a5f1a56ef68ab4b1facf70f73f296230384 100644
--- a/tests/corelib/set_test.dart
+++ b/tests/corelib/set_test.dart
@@ -47,7 +47,6 @@ void testMain(Set create()) {
set.forEach(testForEach);
Expect.equals(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1, sum);
- Expect.isTrue(set.isSubsetOf(set));
Expect.isTrue(set.containsAll(set));
// Test Set.map.
@@ -98,7 +97,6 @@ void testMain(Set create()) {
Expect.equals(1 + 3 + 5 + 7 + 9, sum);
Expect.isTrue(set.containsAll(filtered));
- Expect.isTrue(filtered.isSubsetOf(set));
// Test Set.every.
testEvery(int val) {
@@ -138,8 +136,6 @@ void testMain(Set create()) {
Expect.isTrue(set.containsAll(intersection));
Expect.isTrue(filtered.containsAll(intersection));
- Expect.isTrue(intersection.isSubsetOf(set));
- Expect.isTrue(intersection.isSubsetOf(filtered));
// Test Set.union.
Set twice = create()..addAll([0, 2, 4, 6, 8, 10, 12, 14]);
@@ -159,7 +155,7 @@ void testMain(Set create()) {
Expect.isTrue(twice.difference(thrice).difference(twice).isEmpty);
// Test Set.addAll.
- List list = new List.fixedLength(10);
+ List list = new List(10);
for (int i = 0; i < 10; i++) {
list[i] = i + 10;
}
« no previous file with comments | « tests/corelib/queue_test.dart ('k') | tests/language/generic_native_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698