feat/e2e-testing #31

Merged
max merged 10 commits from feat/e2e-testing into main 2026-02-03 22:29:44 +01:00
3 changed files with 1 additions and 4 deletions
Showing only changes of commit f88b9052b1 - Show all commits

View File

@@ -5,7 +5,6 @@ test('encode_float', () => {
const input = 1.23; const input = 1.23;
const encoded = encodeFloat(input); const encoded = encodeFloat(input);
const output = decodeFloat(encoded); const output = decodeFloat(encoded);
console.log(input, output);
expect(output).toBeCloseTo(input); 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]); const output = concatEncodedArrays([input_a, input_b, input_c]);
console.log('Output', output);
const decoded = decodeNestedArray(output); const decoded = decodeNestedArray(output);
expect(decoded[0]).toEqual([1, 2, 3]); expect(decoded[0]).toEqual([1, 2, 3]);

View File

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