commit | cba04366a47d77f3a63b3704651817a561154c32 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Feb 16 21:13:06 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Feb 16 21:13:06 2000 +0000 |
tree | a4aab72d419c254022a479e37c2ba7facd695d9f | |
parent | 7d47c9e38ad53f9fec49b34cbe7012d6f4a926a4 [diff] [blame] |
Added test for new crc32() function.
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index 0ee842c..28908ef 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py
@@ -84,4 +84,10 @@ res = res + b assert res == testdata +# Test crc32() +crc = binascii.crc32("Test the CRC-32 of") +crc = binascii.crc32(" this string.", crc) +if crc != 1571220330: + print "binascii.crc32() failed." + # The hqx test is in test_binhex.py