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/railencrypt_instrumented.py
2023-12-09 12:43:16 +01:00

14 lines
No EOL
380 B
Python

from unittest import TestCase
from benchmark.railfence_cipher import railencrypt
class Test_railencrypt(TestCase):
def test_railencrypt_1(self):
assert railencrypt(st='6u#%', k=3) == '6u%#'
def test_railencrypt_2(self):
assert railencrypt(st='6uD*z(', k=3) == '6zu*(D'
def test_railencrypt_3(self):
assert railencrypt(st='(', k=307) == '('