This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
kse-02/tests/test_raildecrypt.py
2023-12-09 17:56:51 +01:00

17 lines
No EOL
498 B
Python

from unittest import TestCase
from benchmark.railfence_cipher import raildecrypt
class Test_raildecrypt(TestCase):
def test_raildecrypt_1(self):
assert raildecrypt(st='q338K a{.', k=9) == 'q338K a{.'
def test_raildecrypt_2(self):
assert raildecrypt(st='q338K a{.', k=3) == 'q8{K3 .a3'
def test_raildecrypt_3(self):
assert raildecrypt(st='Hi=BC/', k=557) == 'Hi=BC/'
def test_raildecrypt_4(self):
assert raildecrypt(st='X61*8p', k=5) == 'X61*p8'