Skip to content

Commit 07a384d

Browse files
committed
bigger mask
1 parent 512801f commit 07a384d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/gearhash-wasm/tests/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const random = seededRandom(seed);
1515
const randomData = new Uint8Array(1000000).map(() => Math.floor(random() * 256));
1616

1717
// Test with a known mask
18-
assert.deepStrictEqual(nextMatch(randomData, 0xaf2900n), { position: 128, hash: 11757411513747408525n });
19-
assert.deepStrictEqual(nextMatch(randomData.subarray(128), 0xaf2900n), { position: 184, hash: 7438883163016807155n });
18+
assert.deepStrictEqual(nextMatch(randomData, 0x0000d90003530000n), { position: 459, hash: 9546224108073667431n });
19+
assert.deepStrictEqual(nextMatch(randomData.subarray(128), 0x0000d90003530000n), {
20+
position: 331,
21+
hash: 9546224108073667431n,
22+
});
2023
console.log("ok");

0 commit comments

Comments
 (0)