Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cpython-uhashlib: Add test.
  • Loading branch information
pfalcon committed Aug 20, 2018
1 parent 3e95a98 commit 5c62111
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cpython-uhashlib/test.py
@@ -0,0 +1,9 @@
import hashlib
import uhashlib


md5 = hashlib.md5(b"foo")
umd5 = uhashlib.md5(b"foo")
md5.update(b"bar")
umd5.update(b"bar")
assert md5.digest() == umd5.digest()

0 comments on commit 5c62111

Please sign in to comment.