diff --git a/test/script.spec.ts b/test/script.spec.ts index 7ef712577..3736cdbdf 100644 --- a/test/script.spec.ts +++ b/test/script.spec.ts @@ -52,12 +52,10 @@ describe('script', () => { }); it("decodes a series of numbers from '82 to 96' correctly", () => { - const asm = Array.from({ length: 15 }, (_, i) => - (i + 130).toString(16).padStart(2, '0'), - ).join(' '); + const asm = Array.from({ length: 15 }, (_, i) => i + 82).join(' '); const expected = Array.from({ length: 15 }, (_, i) => [ 1, - i + 130, + parseInt(String(i + 82), 16), ]).flat(); const result = bscript.fromASM(asm); assert.deepStrictEqual(result, Uint8Array.from(expected));