diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-03-19 11:43:31 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-03-19 11:43:31 +0100 |
commit | 6de88859e7fdb8c6418e1033e75ca4900e022b51 (patch) | |
tree | b06b58bcb236554c12842d533fffd30cc72b1546 /tests/test_bjson.js | |
parent | 96e7965cf42e8f6560b2e18b7da80d3f57444d08 (diff) | |
download | quickjs-6de88859e7fdb8c6418e1033e75ca4900e022b51.tar.gz quickjs-6de88859e7fdb8c6418e1033e75ca4900e022b51.zip |
more bignum cleanup
Diffstat (limited to 'tests/test_bjson.js')
-rw-r--r-- | tests/test_bjson.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_bjson.js b/tests/test_bjson.js index f15ef91..a270796 100644 --- a/tests/test_bjson.js +++ b/tests/test_bjson.js @@ -87,7 +87,6 @@ function toStr(a) case "string": return a.__quote(); case "number": - case "bigfloat": if (a == 0 && 1 / a < 0) return "-0"; else @@ -155,21 +154,6 @@ function bjson_test_all() bjson_test([BigInt("1"), -BigInt("0x123456789"), BigInt("0x123456789abcdef123456789abcdef")]); } - if (typeof BigFloat !== "undefined") { - BigFloatEnv.setPrec(function () { - bjson_test([BigFloat("0.1"), BigFloat("-1e30"), BigFloat("0"), - BigFloat("-0"), BigFloat("Infinity"), BigFloat("-Infinity"), - 0.0 / BigFloat("0"), BigFloat.MAX_VALUE, - BigFloat.MIN_VALUE]); - }, 113, 15); - } - if (typeof BigDecimal !== "undefined") { - bjson_test([BigDecimal("0"), - BigDecimal("0.8"), BigDecimal("123321312321321e100"), - BigDecimal("-1233213123213214332333223332e100"), - BigDecimal("1.233e-1000")]); - } - bjson_test([new Date(1234), new String("abc"), new Number(-12.1), new Boolean(true)]); bjson_test(new Int32Array([123123, 222111, -32222])); |