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/encrypt_instrumented.py
2023-11-15 18:23:53 +01:00

305 lines
No EOL
8.7 KiB
Python

from unittest import TestCase
from benchmark.caesar_cipher import encrypt
class Test_encrypt(TestCase):
def test_encrypt_1(self):
assert encrypt(strng='otkoyjjyj', key=35) == '38/3=..=.'
def test_encrypt_2(self):
assert encrypt(strng='tkr', key=33) == '6-4'
def test_encrypt_3(self):
assert encrypt(strng='ngmhaz', key=73) == 'XQWRKd'
def test_encrypt_4(self):
assert encrypt(strng='t', key=7) == '{'
def test_encrypt_5(self):
assert encrypt(strng='khtfavz', key=29) == ')&2$~48'
def test_encrypt_6(self):
assert encrypt(strng='gz', key=33) == ')<'
def test_encrypt_7(self):
assert encrypt(strng='swiada', key=16) == '$(yqtq'
def test_encrypt_8(self):
assert encrypt(strng='a', key=88) == 'Z'
def test_encrypt_9(self):
assert encrypt(strng='sdj', key=7) == 'zkq'
def test_encrypt_10(self):
assert encrypt(strng='rwheldzx', key=80) == 'chYV]Uki'
def test_encrypt_11(self):
assert encrypt(strng='i', key=33) == '+'
def test_encrypt_12(self):
assert encrypt(strng='lefd', key=65) == 'NGHF'
def test_encrypt_13(self):
assert encrypt(strng='nhzp', key=23) == '& 2('
def test_encrypt_14(self):
assert encrypt(strng='qtrqhtqw', key=29) == '/20/&2/5'
def test_encrypt_15(self):
assert encrypt(strng='fb', key=5) == 'kg'
def test_encrypt_16(self):
assert encrypt(strng='ycrvcrxqm', key=12) == '&o~#o~%}y'
def test_encrypt_17(self):
assert encrypt(strng='lgnhpcl', key=83) == '`[b\dW`'
def test_encrypt_18(self):
assert encrypt(strng='wiwqmurt', key=58) == 'RDRLHPMO'
def test_encrypt_19(self):
assert encrypt(strng='nptfuqy', key=32) == '/15'62:'
def test_encrypt_20(self):
assert encrypt(strng='ikisysnc', key=46) == '8:8BHB=2'
def test_encrypt_21(self):
assert encrypt(strng='rxwqdcybl', key=16) == '#)("ts*r|'
def test_encrypt_22(self):
assert encrypt(strng='hzlozno', key=5) == 'm qt st'
def test_encrypt_23(self):
assert encrypt(strng='sx', key=81) == 'ej'
def test_encrypt_24(self):
assert encrypt(strng='fna', key=12) == 'rzm'
def test_encrypt_25(self):
assert encrypt(strng='wttxonmr', key=73) == 'a^^bYXW\'
def test_encrypt_26(self):
assert encrypt(strng='xtbwbg', key=12) == '%!n$ns'
def test_encrypt_27(self):
assert encrypt(strng='yovytul', key=33) == ';18;67.'
def test_encrypt_28(self):
assert encrypt(strng='vlj', key=73) == '`VT'
def test_encrypt_29(self):
assert encrypt(strng='iv', key=16) == 'y''
def test_encrypt_30(self):
assert encrypt(strng='mnjuyf', key=7) == 'tuq|!m'
def test_encrypt_31(self):
assert encrypt(strng='io', key=12) == 'u{'
def test_encrypt_32(self):
assert encrypt(strng='mndoui', key=33) == '/0&17+'
def test_encrypt_33(self):
assert encrypt(strng='xgnn', key=7) == ' nuu'
def test_encrypt_34(self):
assert encrypt(strng='tibnavly', key=61) == 'RG@L?TJW'
def test_encrypt_35(self):
assert encrypt(strng='cmlpeouu', key=18) == 'u ~#w"(('
def test_encrypt_36(self):
assert encrypt(strng='qplae', key=29) == '/.*~#'
def test_encrypt_37(self):
assert encrypt(strng='hdmijaois', key=29) == '&"+'(~-'1'
def test_encrypt_38(self):
assert encrypt(strng='', key=91) == ''
def test_encrypt_39(self):
assert encrypt(strng='lzgtesfa', key=61) == 'JXERCQD?'
def test_encrypt_40(self):
assert encrypt(strng='cbio', key=33) == '%$+1'
def test_encrypt_41(self):
assert encrypt(strng='av', key=33) == '#8'
def test_encrypt_42(self):
assert encrypt(strng='vpwpcavh', key=29) == '4.5.!~4&'
def test_encrypt_43(self):
assert encrypt(strng='', key=51) == ''
def test_encrypt_44(self):
assert encrypt(strng='taf', key=16) == '%qv'
def test_encrypt_45(self):
assert encrypt(strng='jezuahj', key=29) == '(#83~&('
def test_encrypt_46(self):
assert encrypt(strng='ngakdkzv', key=25) == '(!z%}%40'
def test_encrypt_47(self):
assert encrypt(strng='jaqv', key=33) == ',#38'
def test_encrypt_48(self):
assert encrypt(strng='i', key=32) == '*'
def test_encrypt_49(self):
assert encrypt(strng='', key=7) == ''
def test_encrypt_50(self):
assert encrypt(strng='hyd', key=12) == 't&p'
def test_encrypt_51(self):
assert encrypt(strng='znlzh', key=58) == 'UIGUC'
def test_encrypt_52(self):
assert encrypt(strng='qrl', key=29) == '/0*'
def test_encrypt_53(self):
assert encrypt(strng='kpzh', key=91) == 'glvd'
def test_encrypt_54(self):
assert encrypt(strng='lhez', key=8) == 'tpm#'
def test_encrypt_55(self):
assert encrypt(strng='', key=16) == ''
def test_encrypt_56(self):
assert encrypt(strng='itef', key=65) == 'KVGH'
def test_encrypt_57(self):
assert encrypt(strng='', key=28) == ''
def test_encrypt_58(self):
assert encrypt(strng='ogelz', key=91) == 'kcahv'
def test_encrypt_59(self):
assert encrypt(strng='fc', key=7) == 'mj'
def test_encrypt_60(self):
assert encrypt(strng='aizzfscky', key=29) == '~'88$1!)7'
def test_encrypt_61(self):
assert encrypt(strng='fxtmd', key=70) == 'M_[TK'
def test_encrypt_62(self):
assert encrypt(strng='dmpxcosh', key=91) == '`ilt_kod'
def test_encrypt_63(self):
assert encrypt(strng='yf', key=32) == ':''
def test_encrypt_64(self):
assert encrypt(strng='ploelrh', key=26) == '+'* '-#'
def test_encrypt_65(self):
assert encrypt(strng='fswmbdzg', key=41) == '0=A7,.D1'
def test_encrypt_66(self):
assert encrypt(strng='gncmc', key=81) == 'Y`U_U'
def test_encrypt_67(self):
assert encrypt(strng='awezqrc', key=91) == ']savmn_'
def test_encrypt_68(self):
assert encrypt(strng='djch', key=8) == 'lrkp'
def test_encrypt_69(self):
assert encrypt(strng='taow', key=12) == '!m{$'
def test_encrypt_70(self):
assert encrypt(strng='saxykgf', key=46) == 'B0GH:65'
def test_encrypt_71(self):
assert encrypt(strng='hopkqpr', key=18) == 'z"#}$#%'
def test_encrypt_72(self):
assert encrypt(strng='rh', key=16) == '#x'
def test_encrypt_73(self):
assert encrypt(strng='uiptgxw', key=11) == '!t{ r$#'
def test_encrypt_74(self):
assert encrypt(strng='jvkch', key=8) == 'r~skp'
def test_encrypt_75(self):
assert encrypt(strng='ngtygnc', key=40) == '70=B07,'
def test_encrypt_76(self):
assert encrypt(strng='qoysx', key=8) == 'yw"{!'
def test_encrypt_77(self):
assert encrypt(strng='', key=71) == ''
def test_encrypt_78(self):
assert encrypt(strng='cixqt', key=70) == 'JP_X['
def test_encrypt_79(self):
assert encrypt(strng='gxzt', key=46) == '6GIC'
def test_encrypt_80(self):
assert encrypt(strng='md', key=36) == '2)'
def test_encrypt_81(self):
assert encrypt(strng='luvsycmji', key=29) == '*3417!+(''
def test_encrypt_82(self):
assert encrypt(strng='zkdsxen', key=58) == 'UF?NS@I'
def test_encrypt_83(self):
assert encrypt(strng='bqwlc', key=35) == '&5;0''
def test_encrypt_84(self):
assert encrypt(strng='gfant', key=25) == '! z(.'
def test_encrypt_85(self):
assert encrypt(strng='iqrxssoij', key=92) == 'fnoupplfg'
def test_encrypt_86(self):
assert encrypt(strng='jan', key=46) == '90='
def test_encrypt_87(self):
assert encrypt(strng='fuuq', key=13) == 's##~'
def test_encrypt_88(self):
assert encrypt(strng='a', key=29) == '~'
def test_encrypt_89(self):
assert encrypt(strng='zmlqkyf', key=42) == 'E87<6D1'
def test_encrypt_90(self):
assert encrypt(strng='kaimotdh', key=25) == '%z#').}"'
def test_encrypt_91(self):
assert encrypt(strng='ijsvvi', key=58) == 'DENQQD'
def test_encrypt_92(self):
assert encrypt(strng='wyzkst', key=91) == 'suvgop'
def test_encrypt_93(self):
assert encrypt(strng='', key=4) == ''
def test_encrypt_94(self):
assert encrypt(strng='mthw', key=33) == '/6*9'
def test_encrypt_95(self):
assert encrypt(strng='a', key=73) == 'K'
def test_encrypt_96(self):
assert encrypt(strng='jmnbazu', key=33) == ',/0$#<7'
def test_encrypt_97(self):
assert encrypt(strng='olhwe', key=88) == 'heap^'
def test_encrypt_98(self):
assert encrypt(strng='pxd', key=33) == '2:&'
def test_encrypt_99(self):
assert encrypt(strng='gvlgx', key=48) == '8G=8I'
def test_encrypt_100(self):
assert encrypt(strng='ci', key=7) == 'jp'