Extended test to stress the CRC function.

This commit is contained in:
Yannick Kirschhoffer
2018-11-04 00:17:09 +01:00
parent 16c83d1505
commit d82dfd5537
+1
View File
@@ -5,6 +5,7 @@ def test_hex2bin():
assert common.hex2bin('6E406B') == "011011100100000001101011" assert common.hex2bin('6E406B') == "011011100100000001101011"
def test_crc_decode(): def test_crc_decode():
for i in range(5000):
checksum = common.crc("8D406B902015A678D4D220AA4BDA") checksum = common.crc("8D406B902015A678D4D220AA4BDA")
assert checksum == "000000000000000000000000" assert checksum == "000000000000000000000000"