Skip to content

Add first-class support for bigints #5828

Add first-class support for bigints

Add first-class support for bigints #5828

Triggered via push September 4, 2024 14:18
Status Failure
Total duration 2m 13s
Artifacts

lint-test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors
src/h5wasm-api.test.ts > test file matches snapshot: packages/h5wasm/src/h5wasm-api.test.ts#L61
Error: Snapshot `test file matches snapshot 1` mismatched - Expected + Received @@ -172,16 +172,15 @@ "type": 0, "vlen": false, }, "shape": [], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, - "value": -9223372036854776000, + "value": -9223372036854775808n, }, { "name": "int64_2D", "rawType": { "littleEndian": true, @@ -194,23 +193,22 @@ "shape": [ 2, 3, ], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, - "value": [ - 0, - 1, - 2, - 3, - 4, - 5, - ], + "value": BigInt64Array { + "0": 0n, + "1": 1n, + "2": 2n, + "3": 3n, + "4": 4n, + "5": 5n, + }, }, { "name": "uint8_scalar", "rawType": { "littleEndian": true, @@ -364,16 +362,15 @@ "type": 0, "vlen": false, }, "shape": [], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": false, - "size": 64, }, - "value": 18446744073709552000, + "value": 18446744073709551615n, }, { "name": "uint64_3D", "rawType": { "littleEndian": true, @@ -387,25 +384,24 @@ 2, 2, 2, ], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": false, - "size": 64, }, - "value": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 18446744073709552000, - ], + "value": BigUint64Array { + "0": 0n, + "1": 1n, + "2": 2n, + "3": 3n, + "4": 4n, + "5": 5n, + "6": 6n, + "7": 18446744073709551615n, + }, }, { "name": "float16_scalar", "rawType": { "littleEndian": true, @@ -1411,14 +1407,13 @@ "shape": [], "type": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "double": { "class": "Float", "endianness": "little-endian", "size": 64, @@ -1429,11 +1424,11 @@ "strPad": "null-terminated", }, }, }, "value": [ - 1, + 1n, 2, "foo", ], }, { @@ -1488,14 +1483,13 @@ ], "type": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "double": { "class": "Float", "endianness": "little-endian", "size": 64, @@ -1507,21 +1501,21 @@ }, }, }, "value": [ [ - 1, + 1n, NaN, "foo", ], [ - 2, + 2n, Infinity, "bar", ], [ - 3, + 3n, -0, "baz", ], ], }, @@ -1624,14 +1618,13 @@ "fields": { "nested": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "bool": { "class": "Boolean", }, "cplx": { @@ -1656,11 +1649,11 @@ 1, [ 1, 2, ], -
src/providers/h5grove/h5grove-api.test.ts > test file matches snapshot: packages/app/src/providers/h5grove/h5grove-api.test.ts#L46
Error: Snapshot `test file matches snapshot 1` mismatched - Expected + Received @@ -164,14 +164,13 @@ "sign": 1, "size": 8, }, "shape": [], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "value": -9223372036854776000, }, { "name": "int64_2D", @@ -185,14 +184,13 @@ "shape": [ 2, 3, ], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "value": [ 0, 1, 2, @@ -348,14 +346,13 @@ "sign": 0, "size": 8, }, "shape": [], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": false, - "size": 64, }, "value": 18446744073709552000, }, { "name": "uint64_3D", @@ -370,14 +367,13 @@ 2, 2, 2, ], "type": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": false, - "size": 64, }, "value": [ 0, 1, 2, @@ -1265,14 +1261,13 @@ "shape": [], "type": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "double": { "class": "Float", "endianness": "little-endian", "size": 64, @@ -1329,14 +1324,13 @@ ], "type": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "double": { "class": "Float", "endianness": "little-endian", "size": 64, @@ -1440,14 +1434,13 @@ "fields": { "nested": { "class": "Compound", "fields": { "bigint": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "bool": { "class": "Boolean", }, "cplx": { @@ -1533,14 +1526,13 @@ 2, ], }, "vlen": { "base": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": false, - "size": 64, }, "class": "Array (variable length)", }, }, }, @@ -1965,14 +1957,13 @@ "shape": [ 3, ], "type": { "base": { - "class": "Integer", + "class": "Integer (64-bit)", "endianness": "little-endian", "signed": true, - "size": 64, }, "class": "Array (variable length)", }, "value": [ [ ❯ src/providers/h5grove/h5grove-api.test.ts:46:20
test
Process completed with exit code 1.