summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-02-04 13:17:13 -0800
committerRich Trott <rtrott@gmail.com>2019-02-06 13:34:46 -0800
commit935b1af9907cd166a1a8b40fb83fdef411110e91 (patch)
treed5af60d37c7e57e6c1e7c95a72a7610ba439588b /test
parentf31794bf1467eb156dad077647e2f075eb3757c7 (diff)
downloadandroid-node-v8-935b1af9907cd166a1a8b40fb83fdef411110e91.tar.gz
android-node-v8-935b1af9907cd166a1a8b40fb83fdef411110e91.tar.bz2
android-node-v8-935b1af9907cd166a1a8b40fb83fdef411110e91.zip
test: add BigInt test for isDeepStrictEqual
Add some BigInt tests for test-util-isDeepStrictEqual to get 100% coverage for lib/internal/util/comparisons.js. PR-URL: https://github.com/nodejs/node/pull/25932 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-util-isDeepStrictEqual.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-util-isDeepStrictEqual.js b/test/parallel/test-util-isDeepStrictEqual.js
index fd585f7ccf..0eb75e46eb 100644
--- a/test/parallel/test-util-isDeepStrictEqual.js
+++ b/test/parallel/test-util-isDeepStrictEqual.js
@@ -447,6 +447,8 @@ assert.strictEqual(
notUtilIsDeepStrict(boxedString, Object('test'));
boxedSymbol.slow = true;
notUtilIsDeepStrict(boxedSymbol, {});
+ utilIsDeepStrict(Object(BigInt(1)), Object(BigInt(1)));
+ notUtilIsDeepStrict(Object(BigInt(1)), Object(BigInt(2)));
}
// Minus zero