Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Dec 10, 2018
1 parent bd11fe0 commit 3a6f690
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xxtea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def decrypt_utf8(data, key):
text = "Hello World! \0你好,中国!"
key = "1234567890"
encrypt_data = encrypt(text, key)
if sys.version_info < (3, 0):
decrypt_data = decrypt(encrypt_data, key)
else:
decrypt_data = decrypt_utf8(encrypt_data, key)
if sys.version_info < (3, 0):
decrypt_data = decrypt(encrypt_data, key)
else:
decrypt_data = decrypt_utf8(encrypt_data, key)
assert(text == decrypt_data)

0 comments on commit 3a6f690

Please sign in to comment.