diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-05-05 19:12:32 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-05-05 19:12:32 +0200 |
commit | a8b2d7c2b2751130000b74ac7d831fd75a0abbc3 (patch) | |
tree | 92d851b3a1eeb56d53796ca43a859f7300892b42 /tests/test_bjson.js | |
parent | c95b024d3e4b396c9569719173e4269091dc0bf7 (diff) | |
download | quickjs-a8b2d7c2b2751130000b74ac7d831fd75a0abbc3.tar.gz quickjs-a8b2d7c2b2751130000b74ac7d831fd75a0abbc3.zip |
added Float16Array (bnoordhuis) - optimized float16 conversion functions
Diffstat (limited to 'tests/test_bjson.js')
-rw-r--r-- | tests/test_bjson.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_bjson.js b/tests/test_bjson.js index a270796..a90bfe1 100644 --- a/tests/test_bjson.js +++ b/tests/test_bjson.js @@ -42,6 +42,7 @@ function isArrayLike(a) (a instanceof Int8Array) || (a instanceof Int16Array) || (a instanceof Int32Array) || + (a instanceof Float16Array) || (a instanceof Float32Array) || (a instanceof Float64Array); } @@ -157,6 +158,7 @@ function bjson_test_all() bjson_test([new Date(1234), new String("abc"), new Number(-12.1), new Boolean(true)]); bjson_test(new Int32Array([123123, 222111, -32222])); + bjson_test(new Float16Array([1024, 1024.5])); bjson_test(new Float64Array([123123, 222111.5])); /* tested with a circular reference */ |