From: Guido van Rossum Date: Wed, 16 Feb 2000 21:13:06 +0000 (+0000) Subject: Added test for new crc32() function. X-Git-Tag: v1.6a1~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cba04366a47d77f3a63b3704651817a561154c32;p=python Added test for new crc32() function. --- diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index 0ee842c4e9..28908ef377 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -84,4 +84,10 @@ for line in lines: 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