tests: fix crc32_test.v

pull/4291/head
Delyan Angelov 2020-04-08 16:48:13 +03:00
parent 4f7bfaf5d0
commit 1388532bd4
2 changed files with 3 additions and 4 deletions

View File

@ -64,7 +64,6 @@ const (
'vlib/v/tests/typeof_test.v', 'vlib/v/tests/typeof_test.v',
'vlib/v/tests/valgrind/valgrind_test.v', // ubuntu-musl only 'vlib/v/tests/valgrind/valgrind_test.v', // ubuntu-musl only
'vlib/vweb/assets/assets_test.v', 'vlib/vweb/assets/assets_test.v',
'vlib/hash/crc32/crc32_test.v'
] ]
) )

View File

@ -8,9 +8,9 @@ module crc32
// polynomials // polynomials
pub const ( pub const (
ieee = 0xedb88320 ieee = u32(0xedb88320)
castagnoli = 0x82f63b78 castagnoli = u32(0x82f63b78)
koopman = 0xeb31d82e koopman = u32(0xeb31d82e)
) )
// The size of a CRC-32 checksum in bytes. // The size of a CRC-32 checksum in bytes.