First working version

This commit is contained in:
2021-11-25 17:55:49 +08:00
commit 7f899a57a8
23 changed files with 1628 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import pytest
from src.decoder import decode_secret
@pytest.mark.parametrize(
'secret,expected_result',
[
(b'Hello!\xde\xad\xbe\xef', 'JBSWY3DPEHPK3PXP', ),
(b'Hello!', 'JBSWY3DPEE',),
(b'\xde\xad\xbe\xef', '32W353Y',),
],
)
def test_decode_secret(secret, expected_result):
# act
result = decode_secret(secret)
# assert
assert result == expected_result