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/raildecrypt.py

17 lines
498 B
Python
Raw Normal View History

2023-12-09 13:43:29 +00:00
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'