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-12-09 11:56:23 +01:00

305 lines
No EOL
8.8 KiB
Python

from unittest import TestCase
from benchmark.caesar_cipher import encrypt
class Test_encrypt(TestCase):
def test_encrypt_1(self):
assert encrypt(strng='.1zZ`MJ$', key=55) == 'ehR28%"['
def test_encrypt_2(self):
assert encrypt(strng='Fs;g{w', key=4) == 'Jw?k {'
def test_encrypt_3(self):
assert encrypt(strng='X"N{', key=49) == '*S M'
def test_encrypt_4(self):
assert encrypt(strng=',u', key=45) == 'YC'
def test_encrypt_5(self):
assert encrypt(strng='XR&lKm.', key=64) == '93fM,Nn'
def test_encrypt_6(self):
assert encrypt(strng='Ocj=e', key=49) == '!5<n7'
def test_encrypt_7(self):
assert encrypt(strng=':]K*', key=82) == '-P>|'
def test_encrypt_8(self):
assert encrypt(strng='x]q`4;"', key=50) == 'K0D3fmT'
def test_encrypt_9(self):
assert encrypt(strng='/Pd6-hfD', key=36) == 'St)ZQ-+h'
def test_encrypt_10(self):
assert encrypt(strng='FKglwI<', key=61) == '$)EJU'y'
def test_encrypt_11(self):
assert encrypt(strng='nO^F', key=32) == '/o~f'
def test_encrypt_12(self):
assert encrypt(strng='!g&KCiEEC', key=5) == '&l+PHnJJH'
def test_encrypt_13(self):
assert encrypt(strng='!GDeE"', key=5) == '&LIjJ''
def test_encrypt_14(self):
assert encrypt(strng='xjE? 0]fY', key=50) == 'K=wqRb09,'
def test_encrypt_15(self):
assert encrypt(strng='', key=38) == ''
def test_encrypt_16(self):
assert encrypt(strng='lE+W~', key=67) == 'P)n;b'
def test_encrypt_17(self):
assert encrypt(strng='FbYUT**E', key=52) == 'z7.*)^^y'
def test_encrypt_18(self):
assert encrypt(strng='!RbeE"', key=5) == '&WgjJ''
def test_encrypt_19(self):
assert encrypt(strng='Cl6$awL', key=28) == '_)R@}4h'
def test_encrypt_20(self):
assert encrypt(strng='zHvsl:"y', key=70) == 'a/]ZS!h`'
def test_encrypt_21(self):
assert encrypt(strng='b]', key=5) == 'gb'
def test_encrypt_22(self):
assert encrypt(strng='&', key=62) == 'd'
def test_encrypt_23(self):
assert encrypt(strng='Wr{@$5~cy', key=39) == '~:CgK\F+A'
def test_encrypt_24(self):
assert encrypt(strng='Cl6b[', key=28) == '_)R~w'
def test_encrypt_25(self):
assert encrypt(strng='DQ^f"\'', key=5) == 'IVck'a,'
def test_encrypt_26(self):
assert encrypt(strng='LD'', key=8) == 'TL/'
def test_encrypt_27(self):
assert encrypt(strng='nBx&KQ[i{', key=21) == '$W.;`fp~1'
def test_encrypt_28(self):
assert encrypt(strng='XL~X', key=70) == '?3e?'
def test_encrypt_29(self):
assert encrypt(strng='bspHP', key=5) == 'gxuMU'
def test_encrypt_30(self):
assert encrypt(strng='WALy^^!_+', key=83) == 'K5@mRRtS~'
def test_encrypt_31(self):
assert encrypt(strng='^VD,k;h', key=32) == '~vdL,[)'
def test_encrypt_32(self):
assert encrypt(strng='2A/L~[%4', key=57) == 'kzh&X5^m'
def test_encrypt_33(self):
assert encrypt(strng='{3hA', key=51) == 'Of<t'
def test_encrypt_34(self):
assert encrypt(strng='nD '5f', key=6) == 'tJ&-;l'
def test_encrypt_35(self):
assert encrypt(strng='(p;'k', key=89) == '"j5!e'
def test_encrypt_36(self):
assert encrypt(strng='XLLT+$^HQ', key=70) == '?33;qjE/8'
def test_encrypt_37(self):
assert encrypt(strng='=~7+4', key=89) == '7x1%.'
def test_encrypt_38(self):
assert encrypt(strng='XL~Xv ~', key=14) == 'fZ-f%.-'
def test_encrypt_39(self):
assert encrypt(strng=']Q^f"S2', key=3) == '`Tai%V5'
def test_encrypt_40(self):
assert encrypt(strng='if<yM"\_', key=49) == ';8mK~S.1'
def test_encrypt_41(self):
assert encrypt(strng='_x$4n', key=49) == '1JUe@'
def test_encrypt_42(self):
assert encrypt(strng='n4mc', key=62) == 'MrLB'
def test_encrypt_43(self):
assert encrypt(strng='x', key=53) == 'N'
def test_encrypt_44(self):
assert encrypt(strng='=.%2Tk', key=89) == '7(~,Ne'
def test_encrypt_45(self):
assert encrypt(strng='', key=14) == ''
def test_encrypt_46(self):
assert encrypt(strng='>y>', key=6) == 'D D'
def test_encrypt_47(self):
assert encrypt(strng='EoqE!F', key=8) == 'MwyM)N'
def test_encrypt_48(self):
assert encrypt(strng='X2Jz>2)L', key=38) == '~XpAdXOr'
def test_encrypt_49(self):
assert encrypt(strng='bsj', key=5) == 'gxo'
def test_encrypt_50(self):
assert encrypt(strng='FKglwI', key=61) == '$)EJU''
def test_encrypt_51(self):
assert encrypt(strng='', key=57) == ''
def test_encrypt_52(self):
assert encrypt(strng='LD,C', key=8) == 'TL4K'
def test_encrypt_53(self):
assert encrypt(strng='L-Xf$', key=8) == 'T5`n,'
def test_encrypt_54(self):
assert encrypt(strng='', key=77) == ''
def test_encrypt_55(self):
assert encrypt(strng='Ckmi', key=14) == 'Qy{w'
def test_encrypt_56(self):
assert encrypt(strng='L-( W{ue', key=8) == 'T50(_$}m'
def test_encrypt_57(self):
assert encrypt(strng='/Pd6-Q[i{', key=36) == 'St)ZQu .@'
def test_encrypt_58(self):
assert encrypt(strng='XLRT+$^Yg', key=70) == '?39;qjE@N'
def test_encrypt_59(self):
assert encrypt(strng='^HG+B', key=51) == '2{z^u'
def test_encrypt_60(self):
assert encrypt(strng='1a'7Je', key=30) == 'O EUh$'
def test_encrypt_61(self):
assert encrypt(strng='vJaiN.cB', key=20) == '+^u}bBwV'
def test_encrypt_62(self):
assert encrypt(strng='ns(ob!Pb', key=61) == 'LQeM@^.@'
def test_encrypt_63(self):
assert encrypt(strng='nO15X', key=32) == '/oQUx'
def test_encrypt_64(self):
assert encrypt(strng='>9', key=45) == 'kf'
def test_encrypt_65(self):
assert encrypt(strng=']Q^f"o28Q', key=3) == '`Tai%r5;T'
def test_encrypt_66(self):
assert encrypt(strng='5H>Eac', key=3) == '8KAHdf'
def test_encrypt_67(self):
assert encrypt(strng='L-X', key=8) == 'T5`'
def test_encrypt_68(self):
assert encrypt(strng='\CIXRTgh', key=38) == '#io~xz./'
def test_encrypt_69(self):
assert encrypt(strng='kK$q)[!E5', key=72) == 'T4lZqDi.}'
def test_encrypt_70(self):
assert encrypt(strng='G c#@\zf$', key=49) == 'xQ5Tq.L8U'
def test_encrypt_71(self):
assert encrypt(strng='/Pd6-hfD', key=70) == 'u7K|sOM+'
def test_encrypt_72(self):
assert encrypt(strng='L-', key=8) == 'T5'
def test_encrypt_73(self):
assert encrypt(strng='x]q`)m2"U', key=50) == 'K0D3[@dT('
def test_encrypt_74(self):
assert encrypt(strng='ou*i"', key=8) == 'w}2q*'
def test_encrypt_75(self):
assert encrypt(strng='Wfi|*', key=92) == 'Tcfy''
def test_encrypt_76(self):
assert encrypt(strng='j1}', key=63) == 'Jp]'
def test_encrypt_77(self):
assert encrypt(strng='4[D@&k^', key=23) == 'Kr[W=#u'
def test_encrypt_78(self):
assert encrypt(strng='', key=67) == ''
def test_encrypt_79(self):
assert encrypt(strng='8D_.B|+', key=49) == 'iu1_sN\'
def test_encrypt_80(self):
assert encrypt(strng='!g&3', key=5) == '&l+8'
def test_encrypt_81(self):
assert encrypt(strng='nD', key=6) == 'tJ'
def test_encrypt_82(self):
assert encrypt(strng='x/_7', key=50) == 'Ka2i'
def test_encrypt_83(self):
assert encrypt(strng='?]', key=5) == 'Db'
def test_encrypt_84(self):
assert encrypt(strng='FKglwI}', key=61) == '$)EJU'['
def test_encrypt_85(self):
assert encrypt(strng='nD '5f', key=8) == 'vL(/=n'
def test_encrypt_86(self):
assert encrypt(strng='XL~X', key=14) == 'fZ-f'
def test_encrypt_87(self):
assert encrypt(strng='!3V0]Ef', key=65) == 'bt8q?'H'
def test_encrypt_88(self):
assert encrypt(strng='C m/', key=51) == 'vSAb'
def test_encrypt_89(self):
assert encrypt(strng='^', key=49) == '0'
def test_encrypt_90(self):
assert encrypt(strng='=o71', key=64) == '}Pwq'
def test_encrypt_91(self):
assert encrypt(strng='cn', key=49) == '5@'
def test_encrypt_92(self):
assert encrypt(strng='xyC}Q', key=55) == 'PQzU)'
def test_encrypt_93(self):
assert encrypt(strng='', key=1) == ''
def test_encrypt_94(self):
assert encrypt(strng='l;BCVf)~b', key=67) == 'P~&':JlbF'
def test_encrypt_95(self):
assert encrypt(strng='0$K', key=38) == 'VJq'
def test_encrypt_96(self):
assert encrypt(strng='5H>Eac ', key=3) == '8KAHdf#'
def test_encrypt_97(self):
assert encrypt(strng='L-ShQ', key=8) == 'T5[pY'
def test_encrypt_98(self):
assert encrypt(strng='c!1bQ`GY', key=49) == '5Rb4#2x+'
def test_encrypt_99(self):
assert encrypt(strng=',m%l', key=76) == 'xZqY'
def test_encrypt_100(self):
assert encrypt(strng='XL~X', key=67) == '<0b<'