]> gitweb.factorcode.org Git - factor.git/blob - basis/checksums/crc16/crc16-tests.factor
more test IN: cleanup.
[factor.git] / basis / checksums / crc16 / crc16-tests.factor
1 ! Copyright (C) 2016 Alexander Ilin.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test checksums checksums.crc16 ;
4
5 { B{ 0xb8 0x80 } } [
6     B{ 0x01 0x04 0x02 0xFF 0xFF } crc16 checksum-bytes
7 ] unit-test
8
9 { B{ 0x21 0xc1 } } [
10     B{ 0x68 0x11 0x08 0x18 0x00 0x00 0x01 0x43 0x04 0x6e 0xda }
11     crc16 checksum-bytes
12 ] unit-test