mirror of
https://github.com/tc39/test262.git
synced 2025-09-24 02:28:05 +02:00
Enable strict mode testing for sm/BigInt
This commit is contained in:
parent
4963431435
commit
630ecb4eb8
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user