From ff5ea96040c0f62853517295338982daaf0aa136 Mon Sep 17 00:00:00 2001 From: James Shuttleworth Date: Fri, 1 Oct 2021 14:07:20 +0100 Subject: [PATCH] Added the test_hashes file that should have been in there already --- tests/test_hashes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_hashes.py diff --git a/tests/test_hashes.py b/tests/test_hashes.py new file mode 100644 index 0000000..e31410a --- /dev/null +++ b/tests/test_hashes.py @@ -0,0 +1,12 @@ +import pytest +import sys +sys.path.append("./src/") +import rainbow_generator +import pearson + + +def test_hashes(): + + assert pearson.hashN("CeQ",2)==b"\xFF\x99" + assert pearson.hashN("kjB",2)==b"\xAA\xAA" +