summaryrefslogtreecommitdiff
path: root/tests/test_bjson.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_bjson.js')
-rw-r--r--tests/test_bjson.js16
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]));