Skip to content

Commit baa10ae

Browse files
Trottaddaleax
authored andcommitted
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: #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>
1 parent c55d662 commit baa10ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-util-isDeepStrictEqual.js

+2
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ assert.strictEqual(
447447
notUtilIsDeepStrict(boxedString, Object('test'));
448448
boxedSymbol.slow = true;
449449
notUtilIsDeepStrict(boxedSymbol, {});
450+
utilIsDeepStrict(Object(BigInt(1)), Object(BigInt(1)));
451+
notUtilIsDeepStrict(Object(BigInt(1)), Object(BigInt(2)));
450452
}
451453

452454
// Minus zero

0 commit comments

Comments
 (0)