diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 13:57:39 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:45:10 -0500 |
commit | 3325e2a516a38936686fb0163b8f8a5292f8256e (patch) | |
tree | ede08c1460468c9a44647a5b0aa3261089bb65c4 /test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js | |
parent | 296657cd90023e89218016870bd972267b4cd33a (diff) | |
download | qtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz |
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js b/test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js index f11212ce4..3d1140a0a 100644 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js +++ b/test/built-ins/TypedArray/prototype/includes/BigInt/search-found-returns-true.js @@ -30,15 +30,15 @@ features: [BigInt, TypedArray] ---*/ testWithBigIntTypedArrayConstructors(function(TA) { - var sample = new TA(convertToBigInt([42, 43, 42, 41])); - assert.sameValue(sample.includes(convertToBigInt(42)), true, "includes(42)"); - assert.sameValue(sample.includes(convertToBigInt(43)), true, "includes(43)"); - assert.sameValue(sample.includes(convertToBigInt(43), 1), true, "includes(43, 1)"); - assert.sameValue(sample.includes(convertToBigInt(42), 1), true, "includes(42, 1)"); - assert.sameValue(sample.includes(convertToBigInt(42), 2), true, "includes(42, 2)"); + var sample = new TA([42n, 43n, 42n, 41n]); + assert.sameValue(sample.includes(42n), true, "includes(42)"); + assert.sameValue(sample.includes(43n), true, "includes(43)"); + assert.sameValue(sample.includes(43n, 1), true, "includes(43, 1)"); + assert.sameValue(sample.includes(42n, 1), true, "includes(42, 1)"); + assert.sameValue(sample.includes(42n, 2), true, "includes(42, 2)"); - assert.sameValue(sample.includes(convertToBigInt(42), -4), true, "includes(42, -4)"); - assert.sameValue(sample.includes(convertToBigInt(42), -3), true, "includes(42, -3)"); - assert.sameValue(sample.includes(convertToBigInt(42), -2), true, "includes(42, -2)"); - assert.sameValue(sample.includes(convertToBigInt(42), -5), true, "includes(42, -5)"); + assert.sameValue(sample.includes(42n, -4), true, "includes(42, -4)"); + assert.sameValue(sample.includes(42n, -3), true, "includes(42, -3)"); + assert.sameValue(sample.includes(42n, -2), true, "includes(42, -2)"); + assert.sameValue(sample.includes(42n, -5), true, "includes(42, -5)"); }); |