Enable strict mode testing for sm/BigInt

This commit is contained in:
André Bargull 2025-04-30 14:16:22 +02:00 committed by Philip Chimento
parent 4963431435
commit 630ecb4eb8
5 changed files with 5 additions and 15 deletions

View File

@ -2,12 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
flags:
- noStrict
description: |
pending
esid: pending
---*/
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/licenses/publicdomain/
@ -249,4 +248,3 @@ assert.sameValue(BigInt(Number(2n**941n + 2n**940n + 2n**889n + 2n**12n)), 2n**9
assert.sameValue(BigInt(Number(2n**941n + 2n**940n + 2n**889n + 2n**888n - 1n)), 2n**941n + 2n**940n + 2n**889n);
assert.sameValue(BigInt(Number(2n**941n + 2n**940n + 2n**889n + 2n**888n)), 2n**941n + 2n**940n + 2n**890n);
assert.sameValue(BigInt(Number(2n**941n + 2n**940n + 2n**889n + 2n**888n + 1n)), 2n**941n + 2n**940n + 2n**890n);

View File

@ -2,12 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
flags:
- noStrict
description: |
pending
esid: pending
---*/
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/licenses/publicdomain/
@ -36,4 +35,3 @@ for (const [power, offset, sign, result] of decimalTests) {
assert.sameValue(((2n**power+offset)*sign).toString(),
result);
}

View File

@ -2,12 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
flags:
- noStrict
description: |
pending
esid: pending
---*/
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/licenses/publicdomain/
@ -39,4 +38,3 @@ for (let bits of [UINT32_MAX-1, UINT32_MAX, UINT32_MAX+1, Number.MAX_SAFE_INTEGE
test(() => BigInt.asUintN(bits, 0n), 0n);
// Skip testing asUintN with negative BigInts since it could OOM.
}

View File

@ -2,16 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
flags:
- noStrict
description: |
pending
esid: pending
---*/
// Any copyright is dedicated to the Public Domain.
// https://creativecommons.org/licenses/publicdomain/
// Check that |x % x| returns zero when |x| contains multiple digits
assert.sameValue(0x10000000000000000n % 0x10000000000000000n, 0n);
assert.sameValue(-0x10000000000000000n % -0x10000000000000000n, 0n);

View File

@ -3,12 +3,11 @@
/*---
includes: [compareArray.js]
flags:
- noStrict
description: |
pending
esid: pending
---*/
// BigInt literals as property keys.
{
let o = {
@ -200,4 +199,3 @@ esid: pending
assert.sameValue(o[10].name, "10");
}