fix(utils): make tests work
Some checks failed
🚀 Release / release (pull_request) Failing after 2m3s

This commit is contained in:
2026-02-03 21:17:34 +01:00
parent aaec37a9d8
commit f88b9052b1
3 changed files with 1 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ test('encode_float', () => {
const input = 1.23;
const encoded = encodeFloat(input);
const output = decodeFloat(encoded);
console.log(input, output);
expect(output).toBeCloseTo(input);
});

View File

@@ -8,8 +8,6 @@ test('it correctly concats nested arrays', () => {
const output = concatEncodedArrays([input_a, input_b, input_c]);
console.log('Output', output);
const decoded = decodeNestedArray(output);
expect(decoded[0]).toEqual([1, 2, 3]);

View File

@@ -88,7 +88,7 @@ function decode_recursive(dense: number[] | Int32Array, index = 0) {
dense,
index
);
decoded.push(...p);
decoded.push(p);
index = nextIndex + 1;
nextBracketIndex = _nextBracketIndex;
} else {