Skip to content

Commit

Permalink
Remove these duplicate +0/-0 Map tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 8, 2015
1 parent aa51355 commit ef1c1aa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('Collections', function () {
if (slowkeys) { testMapping(Object(String(number)), {}); }
});

var testkeys = [+0, Infinity, -Infinity, NaN];
var testkeys = [Infinity, -Infinity, NaN];
if (slowkeys) {
testkeys.push(true, false, null, undefined);
}
Expand All @@ -141,12 +141,6 @@ describe('Collections', function () {
});
testMapping('', {});

// -0 and +0 should be the same key (Map uses SameValueZero)
expect(map.has(-0)).to.equal(true);
expect(map['delete'](+0)).to.equal(true);
testMapping(-0, {});
expect(map.has(+0)).to.equal(true);

// verify that properties of Object don't peek through.
['hasOwnProperty', 'constructor', 'toString', 'isPrototypeOf',
'__proto__', '__parent__', '__count__'].forEach(function (key) {
Expand Down

0 comments on commit ef1c1aa

Please sign in to comment.