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_railencrypt.py
2023-12-09 17:56:51 +01:00

14 lines
No EOL
406 B
Python

from unittest import TestCase
from benchmark.railfence_cipher import railencrypt
class Test_railencrypt(TestCase):
def test_railencrypt_1(self):
assert railencrypt(st=')x8ro;BVm', k=865) == ')x8ro;BVm'
def test_railencrypt_2(self):
assert railencrypt(st='q338K a{.', k=4) == 'qa3 {3K.8'
def test_railencrypt_3(self):
assert railencrypt(st='X61*8p', k=5) == 'X61*p8'