diff options
Diffstat (limited to 'io/ioutil_test.ts')
-rw-r--r-- | io/ioutil_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/ioutil_test.ts b/io/ioutil_test.ts index c1c1ded72..4e34f5698 100644 --- a/io/ioutil_test.ts +++ b/io/ioutil_test.ts @@ -40,10 +40,10 @@ test(async function testReadInt(): Promise<void> { test(async function testReadLong(): Promise<void> { const r = new BinaryReader( - new Uint8Array([0x12, 0x34, 0x56, 0x78, 0x12, 0x34, 0x56, 0x78]) + new Uint8Array([0x00, 0x00, 0x00, 0x78, 0x12, 0x34, 0x56, 0x78]) ); const long = await readLong(new BufReader(r)); - assertEquals(long, 0x1234567812345678); + assertEquals(long, 0x7812345678); }); test(async function testReadLong2(): Promise<void> { |