Skip to content

Commit

Permalink
Increase length of CRC tests to try to cover more paths in CRC folding
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Aug 7, 2018
1 parent fb7fb19 commit 1997ca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testcrc.js
Expand Up @@ -36,7 +36,8 @@ assert.equal(y.crc32_zeroes(1).toString('hex'), 'd202ef8d', 'Zeroes (1)');
assert.equal(y.crc32_zeroes(4).toString('hex'), '2144df1c', 'Zeroes (4)');


doTest('Random', 'crc32', 'fj[-oqijnw34-59n2345j8a sdasdq2345673-98hq2-9348h-na9we8zdfgh-n9 8qwhn-098');
doTest('Random', 'crc32', 'fj[-oqijnw34-59n26 4345j8yn89032q78t9ab9gabh023quhoiBO Z GEB780a sdasdq2345673-98hq2-9348h-na9we8zdfgh-n9 8qwhn-098');
doTest('Random Continue', 'crc32', ['KZSHZ5EDOVAmDdakZZOrGSUGGKSpCJoWH7M0MHy6ohnSzvHY4DjpxXmyfWYJQoJ7tKdNhGcuRVUzrgXM', ycrc32('BdenbmoBgiB10ZkeUBjrsZV3dg2Da2fhHqU9TMdi69AHhLRck3Nk60YuFBXh6lvtefBpjdTxbeEmsaEm')], crc32('BdenbmoBgiB10ZkeUBjrsZV3dg2Da2fhHqU9TMdi69AHhLRck3Nk60YuFBXh6lvtefBpjdTxbeEmsaEmKZSHZ5EDOVAmDdakZZOrGSUGGKSpCJoWH7M0MHy6ohnSzvHY4DjpxXmyfWYJQoJ7tKdNhGcuRVUzrgXM'));


console.log('All tests passed');

0 comments on commit 1997ca6

Please sign in to comment.