Index: tests/corelib/set_test.dart |
diff --git a/tests/corelib/set_test.dart b/tests/corelib/set_test.dart |
index f08583554288900e82cf9ffcfa4f0a2c947554ca..5b9763c7756c8aa255f9730eb1eb6083ebd3c79d 100644 |
--- a/tests/corelib/set_test.dart |
+++ b/tests/corelib/set_test.dart |
@@ -10,6 +10,7 @@ import "dart:collection"; |
void testMain(Set create()) { |
Set set = create(); |
+ |
testLength(0, set); |
set.add(1); |
testLength(1, set); |
@@ -189,6 +190,15 @@ void testLength(int length, Set set) { |
} |
main() { |
- testMain(() => new Set()); |
testMain(() => new HashSet()); |
+ testMain(() => new LinkedHashSet()); |
+ testMain(() => new HashSet(equals: identical)); |
+ testMain(() => new LinkedHashSet(equals: identical)); |
+ testMain(() => new HashSet(equals: (int a, int b) => a == b || a == -b, |
+ hashCode: (int n) => n.hashCode & (-n).hashCode, |
+ isValidKey: (n) => n is int)); |
+ testMain(() => new LinkedHashSet( |
+ equals: (int a, int b) => a == b || a == -b, |
+ hashCode: (int n) => n.hashCode & (-n).hashCode, |
+ isValidKey: (n) => n is int)); |
} |