Skip to content

Commit efece89

Browse files
author
wwwoodall
committed
Add additional specs to Symbol
1 parent 731d8d4 commit efece89

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/objects.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,13 @@
571571
assert.strictEqual(_.isEqual(symbol, symbol), true, 'A symbol is equal to itself');
572572
assert.strictEqual(_.isEqual(symbol, Object(symbol)), true, 'Even when wrapped in Object()');
573573
assert.strictEqual(_.isEqual(symbol, null), false, 'Different types are not equal');
574-
}
575574

575+
var symbolY = Symbol('y');
576+
assert.strictEqual(_.isEqual(symbol, symbolY), false, 'Different symbols are not equal');
577+
578+
var sameStringSymbol = Symbol('x');
579+
assert.strictEqual(_.isEqual(symbol, sameStringSymbol), false, 'Different symbols of same string are not equal');
580+
}
576581
});
577582

578583
QUnit.test('isEmpty', function(assert) {

0 commit comments

Comments
 (0)