Index: test/mjsunit/harmony/collections.js |
diff --git a/test/mjsunit/harmony/collections.js b/test/mjsunit/harmony/collections.js |
index d3c6c0f258030474dc717b27997c74c064630870..4b435c16141b01c50bb3ca7233b053261d9ef919 100644 |
--- a/test/mjsunit/harmony/collections.js |
+++ b/test/mjsunit/harmony/collections.js |
@@ -73,10 +73,15 @@ function TestSet(set, key) { |
function TestSetBehavior(set) { |
for (var i = 0; i < 20; i++) { |
TestSet(set, new Object); |
+ TestSet(set, i); |
+ TestSet(set, i / 100); |
+ TestSet(set, 'key-' + i); |
+ } |
+ var keys = [ +0, -0, +Infinity, -Infinity, true, false, null, undefined ]; |
+ for (var i = 0; i < keys.length; i++) { |
+ TestSet(set, keys[i]); |
} |
} |
-TestSet(new Set, 23); |
-TestSet(new Set, 'foo'); |
TestSetBehavior(new Set); |
@@ -101,7 +106,7 @@ function TestMapBehavior2(m) { |
TestMapping(m, i / 10, new Object); |
TestMapping(m, 'key-' + i, new Object); |
} |
- var keys = [ +0, -0, +Infinity, -Infinity, true, false, null ]; |
+ var keys = [ +0, -0, +Infinity, -Infinity, true, false, null, undefined ]; |
for (var i = 0; i < keys.length; i++) { |
TestMapping(m, keys[i], new Object); |
} |