Revert "lists: Add list literal doc example."
[factor.git] / core / checksums / crc32 / crc32-tests.factor
blob6922a056ac20e77793318fb852f4964642ec415f
1 USING: checksums checksums.crc32 kernel tools.test ;
3 { B{ 0 0 0 0 } } [ "" crc32 checksum-bytes ] unit-test
5 { B{ 0xcb 0xf4 0x39 0x26 } } [ "123456789" crc32 checksum-bytes ] unit-test
7 { t } [
8     "resource:LICENSE.txt" crc32
9     [ [ swap add-checksum-file get-checksum ] with-checksum-state ]
10     [ checksum-file ] 2bi =
11 ] unit-test