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

305 lines
8.9 KiB
Python
Raw Normal View History

2023-11-15 17:23:53 +00:00
from unittest import TestCase
from benchmark.caesar_cipher import decrypt
class Test_decrypt(TestCase):
def test_decrypt_1(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='&'m`mq', key=82) == 'ÔÕzmz~'
2023-11-15 17:23:53 +00:00
def test_decrypt_2(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='}Bx&KQ[i{', key=51) == 'JnEów}(6H'
2023-11-15 17:23:53 +00:00
def test_decrypt_3(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='g_IZE@C%', key=67) == '${evaý_â'
2023-11-15 17:23:53 +00:00
def test_decrypt_4(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='e?&L$', key=67) == '"üãhá'
2023-11-15 17:23:53 +00:00
def test_decrypt_5(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='<Q7lO[Hu', key=89) == 'ãøÞröaï{'
2023-11-15 17:23:53 +00:00
def test_decrypt_6(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='h`@nd', key=49) == '7/n=3'
2023-11-15 17:23:53 +00:00
def test_decrypt_7(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=':]K*', key=82) == 'èjùØ'
2023-11-15 17:23:53 +00:00
def test_decrypt_8(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='#$k', key=67) == 'àá('
2023-11-15 17:23:53 +00:00
def test_decrypt_9(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='yJmc', key=8) == 'qBe['
2023-11-15 17:23:53 +00:00
def test_decrypt_10(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='x]C!6jsK_', key=56) == '@%jéþ2;r''
2023-11-15 17:23:53 +00:00
def test_decrypt_11(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='VG', key=58) == '{l'
2023-11-15 17:23:53 +00:00
def test_decrypt_12(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='g_=f.B1U', key=51) == '4,i3ûnþ"'
2023-11-15 17:23:53 +00:00
def test_decrypt_13(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='!3V0a', key=65) == 'àòtï '
2023-11-15 17:23:53 +00:00
def test_decrypt_14(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=''Td=3', key=51) == 'ô!1i_'
2023-11-15 17:23:53 +00:00
def test_decrypt_15(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='<~7', key=89) == 'ã%Þ'
2023-11-15 17:23:53 +00:00
def test_decrypt_16(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='nO^F', key=32) == 'N/>&'
2023-11-15 17:23:53 +00:00
def test_decrypt_17(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='l;6gVf)', key=67) == ')øó$r#æ'
2023-11-15 17:23:53 +00:00
def test_decrypt_18(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='^$*=', key=32) == '>ci|'
2023-11-15 17:23:53 +00:00
def test_decrypt_19(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='#$', key=67) == 'àá'
2023-11-15 17:23:53 +00:00
def test_decrypt_20(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='QS7#[5h#', key=14) == 'CE)tM'Zt'
2023-11-15 17:23:53 +00:00
def test_decrypt_21(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='}#F/', key=51) == 'Jðrü'
2023-11-15 17:23:53 +00:00
def test_decrypt_22(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='P', key=49) == '~'
2023-11-15 17:23:53 +00:00
def test_decrypt_23(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='X00j)Y[', key=38) == '2iiDb35'
2023-11-15 17:23:53 +00:00
def test_decrypt_24(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='gZ13', key=56) == '/"ùû'
2023-11-15 17:23:53 +00:00
def test_decrypt_25(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='`(xr_Ts', key=89) == 'fÏ~xeûy'
2023-11-15 17:23:53 +00:00
def test_decrypt_26(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='|', key=67) == '9'
2023-11-15 17:23:53 +00:00
def test_decrypt_27(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='sQ!wW', key=37) == 'N,üR2'
2023-11-15 17:23:53 +00:00
def test_decrypt_28(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='j}pSGPO]?', key=90) == 'o#uùíöõbå'
2023-11-15 17:23:53 +00:00
def test_decrypt_29(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Z~', key=88) == 'a&'
2023-11-15 17:23:53 +00:00
def test_decrypt_30(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='FW?8hL7', key=3) == 'CT<5eI4'
2023-11-15 17:23:53 +00:00
def test_decrypt_31(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='rNWF[', key=67) == '/jsbw'
2023-11-15 17:23:53 +00:00
def test_decrypt_32(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='WP{@$5~cy', key=39) == '0)TxýmW<R'
2023-11-15 17:23:53 +00:00
def test_decrypt_33(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='CkYk?K0N', key=14) == '5]K]1="@'
2023-11-15 17:23:53 +00:00
def test_decrypt_34(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='#MLml;', key=55) == 'ìut65c'
2023-11-15 17:23:53 +00:00
def test_decrypt_35(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='wVjy`', key=51) == 'D#7F-'
2023-11-15 17:23:53 +00:00
def test_decrypt_36(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='4$&=(', key=21) == '~np(r'
2023-11-15 17:23:53 +00:00
def test_decrypt_37(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='FF?8hL@', key=3) == 'CC<5eI='
2023-11-15 17:23:53 +00:00
def test_decrypt_38(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='g_=f.t[', key=51) == '4,i3ûA('
2023-11-15 17:23:53 +00:00
def test_decrypt_39(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='CC]', key=59) == 'gg"'
2023-11-15 17:23:53 +00:00
def test_decrypt_40(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=14) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_41(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='x]q`4;~', key=56) == '@%9(übF'
2023-11-15 17:23:53 +00:00
def test_decrypt_42(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='}#s"Cv}\', key=51) == '@ïoCJ)'
2023-11-15 17:23:53 +00:00
def test_decrypt_43(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='n4:j', key=62) == '0öü,'
2023-11-15 17:23:53 +00:00
def test_decrypt_44(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='V:<R6', key=58) == '{_awü'
2023-11-15 17:23:53 +00:00
def test_decrypt_45(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='<- s', key=92) == 'àÑÄv'
2023-11-15 17:23:53 +00:00
def test_decrypt_46(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='X2Jz>2)L', key=49) == ''`xIl`øz'
2023-11-15 17:23:53 +00:00
def test_decrypt_47(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='SM'S"Hr', key=64) == 'rlçrâg2'
2023-11-15 17:23:53 +00:00
def test_decrypt_48(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='!o&+u', key=3) == '}l#(r'
2023-11-15 17:23:53 +00:00
def test_decrypt_49(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='E]q`4;"', key=56) == 'l%9(übê'
2023-11-15 17:23:53 +00:00
def test_decrypt_50(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='dRVR', key=20) == 'P>B>'
2023-11-15 17:23:53 +00:00
def test_decrypt_51(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=57) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_52(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='X~d|~"%(', key=38) == '2X>VXüÿa'
2023-11-15 17:23:53 +00:00
def test_decrypt_53(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=' z', key=59) == 'å?'
2023-11-15 17:23:53 +00:00
def test_decrypt_54(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=' yNxW', key=59) == 'å>r={'
2023-11-15 17:23:53 +00:00
def test_decrypt_55(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='CkV', key=14) == '5]H'
2023-11-15 17:23:53 +00:00
def test_decrypt_56(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='wVjL~[%4', key=51) == 'D#7xK(ò`'
2023-11-15 17:23:53 +00:00
def test_decrypt_57(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=' zHK', key=59) == 'å?lo'
2023-11-15 17:23:53 +00:00
def test_decrypt_58(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='mq', key=71) == '&*'
2023-11-15 17:23:53 +00:00
def test_decrypt_59(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Kd*', key=62) == 'l&ì'
2023-11-15 17:23:53 +00:00
def test_decrypt_60(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='g_=f.B1U', key=67) == '${ú#ëÿîq'
2023-11-15 17:23:53 +00:00
def test_decrypt_61(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='}#F', key=51) == 'Jðr'
2023-11-15 17:23:53 +00:00
def test_decrypt_62(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='&'m`m#u<', key=82) == 'ÔÕzmzÑ#ê'
2023-11-15 17:23:53 +00:00
def test_decrypt_63(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='}#4', key=51) == 'Jð`'
2023-11-15 17:23:53 +00:00
def test_decrypt_64(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='QOZQ.g+-', key=64) == 'pnypî'ëí'
2023-11-15 17:23:53 +00:00
def test_decrypt_65(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=3) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_66(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='yJmc', key=56) == 'Aq5+'
2023-11-15 17:23:53 +00:00
def test_decrypt_67(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng=' yNxW kXb', key=59) == 'å>r={å0|''
2023-11-15 17:23:53 +00:00
def test_decrypt_68(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='6HpHP', key=38) == 'o"J"*'
2023-11-15 17:23:53 +00:00
def test_decrypt_69(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='IH!=Y`l*', key=70) == 'baÛ÷ry&ä'
2023-11-15 17:23:53 +00:00
def test_decrypt_70(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='MKJZ+oW', key=32) == '-+*:jO7'
2023-11-15 17:23:53 +00:00
def test_decrypt_71(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='X00j)w', key=38) == '2iiDbQ'
2023-11-15 17:23:53 +00:00
def test_decrypt_72(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Ckm{', key=14) == '5]_m'
2023-11-15 17:23:53 +00:00
def test_decrypt_73(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='l;6gVf)~b', key=67) == ')øó$r#æ;~'
2023-11-15 17:23:53 +00:00
def test_decrypt_74(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='L-', key=8) == 'D%'
2023-11-15 17:23:53 +00:00
def test_decrypt_75(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='4$&=0', key=49) == 'bóõkÿ'
2023-11-15 17:23:53 +00:00
def test_decrypt_76(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='zjX4v(P', key=49) == 'I9'bE÷~'
2023-11-15 17:23:53 +00:00
def test_decrypt_77(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=88) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_78(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='x]q`4;"', key=67) == '5y.|ñøß'
2023-11-15 17:23:53 +00:00
def test_decrypt_79(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Wfi|*', key=92) == 'ûil Î'
2023-11-15 17:23:53 +00:00
def test_decrypt_80(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Jr)%k/bt', key=51) == 'v?öò8ü/A'
2023-11-15 17:23:53 +00:00
def test_decrypt_81(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='tYyJ/34', key=51) == 'A&Fvü_`'
2023-11-15 17:23:53 +00:00
def test_decrypt_82(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='/-a>DJ!', key=30) == 'pnC &,b'
2023-11-15 17:23:53 +00:00
def test_decrypt_83(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='aV)WLl}CF', key=70) == 'zoãpe&7ý_'
2023-11-15 17:23:53 +00:00
def test_decrypt_84(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Eo', key=8) == '=g'
2023-11-15 17:23:53 +00:00
def test_decrypt_85(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='l;BCV', key=67) == ')øÿ_r'
2023-11-15 17:23:53 +00:00
def test_decrypt_86(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='d(e!3sY', key=49) == '3÷4ðaB('
2023-11-15 17:23:53 +00:00
def test_decrypt_87(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='rRA&', key=67) == '/nþã'
2023-11-15 17:23:53 +00:00
def test_decrypt_88(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='3m', key=8) == '+e'
2023-11-15 17:23:53 +00:00
def test_decrypt_89(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='Kd|;(j', key=62) == 'l&>ýê,'
2023-11-15 17:23:53 +00:00
def test_decrypt_90(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='ne[', key=94) == 'ofý'
2023-11-15 17:23:53 +00:00
def test_decrypt_91(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='j^}sc?P\R', key=16) == 'ZNmcS/@LB'
2023-11-15 17:23:53 +00:00
def test_decrypt_92(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='DLM4i{:t', key=71) == 'ýdeí"4ó-'
2023-11-15 17:23:53 +00:00
def test_decrypt_93(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='^', key=38) == '8'
2023-11-15 17:23:53 +00:00
def test_decrypt_94(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='^', key=49) == '-'
2023-11-15 17:23:53 +00:00
def test_decrypt_95(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=1) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_96(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='!P'm4', key=5) == '{K"h/'
2023-11-15 17:23:53 +00:00
def test_decrypt_97(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='H', key=51) == 't'
2023-11-15 17:23:53 +00:00
def test_decrypt_98(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='', key=56) == ''
2023-11-15 17:23:53 +00:00
def test_decrypt_99(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='`;|_', key=21) == 'K&gJ'
2023-11-15 17:23:53 +00:00
def test_decrypt_100(self):
2023-12-09 10:56:23 +00:00
assert decrypt(strng='~a=^=Kk]W', key=49) == 'M0k-ky:,&'