Skip to content

Commit 6be2d61

Browse files
BridgeARBethGriggs
authored andcommitted
test: improve comparison coverage to 100%
PR-URL: #24749 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 5a81a4f commit 6be2d61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-assert-deep.js

+4
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ assertNotDeepOrStrict(new Set([1, 2, 3]), new Set([1, 2, 3, 4]));
225225
assertNotDeepOrStrict(new Set([1, 2, 3, 4]), new Set([1, 2, 3]));
226226
assertDeepAndStrictEqual(new Set(['1', '2', '3']), new Set(['1', '2', '3']));
227227
assertDeepAndStrictEqual(new Set([[1, 2], [3, 4]]), new Set([[3, 4], [1, 2]]));
228+
assertNotDeepOrStrict(new Set([{ a: 0 }]), new Set([{ a: 1 }]));
229+
assertNotDeepOrStrict(new Set([Symbol()]), new Set([Symbol()]));
228230

229231
{
230232
const a = [ 1, 2 ];
@@ -622,6 +624,8 @@ assertDeepAndStrictEqual(-0, -0);
622624
Object.defineProperty(obj2, Symbol(), { value: 1 });
623625
assertOnlyDeepEqual(obj1, obj3);
624626
assertDeepAndStrictEqual(obj1, obj2);
627+
obj2[Symbol()] = true;
628+
assertOnlyDeepEqual(obj1, obj2);
625629
// TypedArrays have a fast path. Test for this as well.
626630
const a = new Uint8Array(4);
627631
const b = new Uint8Array(4);

0 commit comments

Comments
 (0)