Kaydet (Commit) cba04366 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added test for new crc32() function.

üst 7d47c9e3
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment