Skip to content

Commit 5f58928

Browse files
committed
test: improve comparison coverage to 100%
PR-URL: #24749 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 8905518 commit 5f58928

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-assert-deep.js

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ assertNotDeepOrStrict(new Set([1, 2, 3, 4]), new Set([1, 2, 3]));
239239
assertDeepAndStrictEqual(new Set(['1', '2', '3']), new Set(['1', '2', '3']));
240240
assertDeepAndStrictEqual(new Set([[1, 2], [3, 4]]), new Set([[3, 4], [1, 2]]));
241241
assertNotDeepOrStrict(new Set([{ a: 0 }]), new Set([{ a: 1 }]));
242+
assertNotDeepOrStrict(new Set([Symbol()]), new Set([Symbol()]));
242243

243244
{
244245
const a = [ 1, 2 ];
@@ -636,6 +637,8 @@ assertDeepAndStrictEqual(-0, -0);
636637
Object.defineProperty(obj2, Symbol(), { value: 1 });
637638
assertOnlyDeepEqual(obj1, obj3);
638639
assertDeepAndStrictEqual(obj1, obj2);
640+
obj2[Symbol()] = true;
641+
assertOnlyDeepEqual(obj1, obj2);
639642
// TypedArrays have a fast path. Test for this as well.
640643
const a = new Uint8Array(4);
641644
const b = new Uint8Array(4);

0 commit comments

Comments
 (0)