summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-11-30 10:23:07 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-03 13:03:45 +0100
commit2f11fe3663a0f23831b36ef92699d3f358e8a277 (patch)
tree440d28ca2bc3044be7a4e7f3c32a5a9f33ed9acb
parent4dd56a39f1f1c0e98b223b611c3a869775177c68 (diff)
downloadnode-new-2f11fe3663a0f23831b36ef92699d3f358e8a277.tar.gz
test: improve comparison coverage to 100%
PR-URL: https://github.com/nodejs/node/pull/24749 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
-rw-r--r--test/parallel/test-assert-deep.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-assert-deep.js b/test/parallel/test-assert-deep.js
index 38f3179d40..0abad5788e 100644
--- a/test/parallel/test-assert-deep.js
+++ b/test/parallel/test-assert-deep.js
@@ -239,6 +239,7 @@ assertNotDeepOrStrict(new Set([1, 2, 3, 4]), new Set([1, 2, 3]));
assertDeepAndStrictEqual(new Set(['1', '2', '3']), new Set(['1', '2', '3']));
assertDeepAndStrictEqual(new Set([[1, 2], [3, 4]]), new Set([[3, 4], [1, 2]]));
assertNotDeepOrStrict(new Set([{ a: 0 }]), new Set([{ a: 1 }]));
+assertNotDeepOrStrict(new Set([Symbol()]), new Set([Symbol()]));
{
const a = [ 1, 2 ];
@@ -636,6 +637,8 @@ assertDeepAndStrictEqual(-0, -0);
Object.defineProperty(obj2, Symbol(), { value: 1 });
assertOnlyDeepEqual(obj1, obj3);
assertDeepAndStrictEqual(obj1, obj2);
+ obj2[Symbol()] = true;
+ assertOnlyDeepEqual(obj1, obj2);
// TypedArrays have a fast path. Test for this as well.
const a = new Uint8Array(4);
const b = new Uint8Array(4);