305 lines
No EOL
9 KiB
Python
305 lines
No EOL
9 KiB
Python
from unittest import TestCase
|
|
|
|
from benchmark.railfence_cipher import railencrypt
|
|
|
|
|
|
class Test_railencrypt(TestCase):
|
|
def test_railencrypt_1(self):
|
|
assert railencrypt(st='', k=12) == ''
|
|
|
|
def test_railencrypt_2(self):
|
|
assert railencrypt(st='rwzcleip', k=680) == 'rwzcleip'
|
|
|
|
def test_railencrypt_3(self):
|
|
assert railencrypt(st='rwheldzx', k=666) == 'rwheldzx'
|
|
|
|
def test_railencrypt_4(self):
|
|
assert railencrypt(st='', k=821) == ''
|
|
|
|
def test_railencrypt_5(self):
|
|
assert railencrypt(st='idbnrbhwh', k=718) == 'idbnrbhwh'
|
|
|
|
def test_railencrypt_6(self):
|
|
assert railencrypt(st='vgh', k=754) == 'vgh'
|
|
|
|
def test_railencrypt_7(self):
|
|
assert railencrypt(st='doo', k=496) == 'doo'
|
|
|
|
def test_railencrypt_8(self):
|
|
assert railencrypt(st='mryny', k=619) == 'mryny'
|
|
|
|
def test_railencrypt_9(self):
|
|
assert railencrypt(st='', k=426) == ''
|
|
|
|
def test_railencrypt_10(self):
|
|
assert railencrypt(st='xeeqrsmoj', k=245) == 'xeeqrsmoj'
|
|
|
|
def test_railencrypt_11(self):
|
|
assert railencrypt(st='f', k=358) == 'f'
|
|
|
|
def test_railencrypt_12(self):
|
|
assert railencrypt(st='jnfgdr', k=221) == 'jnfgdr'
|
|
|
|
def test_railencrypt_13(self):
|
|
assert railencrypt(st='hrq', k=676) == 'hrq'
|
|
|
|
def test_railencrypt_14(self):
|
|
assert railencrypt(st='q', k=552) == 'q'
|
|
|
|
def test_railencrypt_15(self):
|
|
assert railencrypt(st='rt', k=957) == 'rt'
|
|
|
|
def test_railencrypt_16(self):
|
|
assert railencrypt(st='vrnqfbhd', k=622) == 'vrnqfbhd'
|
|
|
|
def test_railencrypt_17(self):
|
|
assert railencrypt(st='', k=496) == ''
|
|
|
|
def test_railencrypt_18(self):
|
|
assert railencrypt(st='ihutvt', k=661) == 'ihutvt'
|
|
|
|
def test_railencrypt_19(self):
|
|
assert railencrypt(st='iv', k=671) == 'iv'
|
|
|
|
def test_railencrypt_20(self):
|
|
assert railencrypt(st='djch', k=441) == 'djch'
|
|
|
|
def test_railencrypt_21(self):
|
|
assert railencrypt(st='doo', k=527) == 'doo'
|
|
|
|
def test_railencrypt_22(self):
|
|
assert railencrypt(st='p', k=768) == 'p'
|
|
|
|
def test_railencrypt_23(self):
|
|
assert railencrypt(st='kft', k=527) == 'kft'
|
|
|
|
def test_railencrypt_24(self):
|
|
assert railencrypt(st='tafnzqyuq', k=352) == 'tafnzqyuq'
|
|
|
|
def test_railencrypt_25(self):
|
|
assert railencrypt(st='qmfvr', k=289) == 'qmfvr'
|
|
|
|
def test_railencrypt_26(self):
|
|
assert railencrypt(st='pcmyim', k=927) == 'pcmyim'
|
|
|
|
def test_railencrypt_27(self):
|
|
assert railencrypt(st='vxxgc', k=897) == 'vxxgc'
|
|
|
|
def test_railencrypt_28(self):
|
|
assert railencrypt(st='gmatyguqw', k=426) == 'gmatyguqw'
|
|
|
|
def test_railencrypt_29(self):
|
|
assert railencrypt(st='', k=940) == ''
|
|
|
|
def test_railencrypt_30(self):
|
|
assert railencrypt(st='cszhjgvt', k=873) == 'cszhjgvt'
|
|
|
|
def test_railencrypt_31(self):
|
|
assert railencrypt(st='ocbnbj', k=523) == 'ocbnbj'
|
|
|
|
def test_railencrypt_32(self):
|
|
assert railencrypt(st='', k=343) == ''
|
|
|
|
def test_railencrypt_33(self):
|
|
assert railencrypt(st='bugjol', k=786) == 'bugjol'
|
|
|
|
def test_railencrypt_34(self):
|
|
assert railencrypt(st='ujqmp', k=446) == 'ujqmp'
|
|
|
|
def test_railencrypt_35(self):
|
|
assert railencrypt(st='ihutvt', k=369) == 'ihutvt'
|
|
|
|
def test_railencrypt_36(self):
|
|
assert railencrypt(st='uc', k=927) == 'uc'
|
|
|
|
def test_railencrypt_37(self):
|
|
assert railencrypt(st='lgnhpcl', k=207) == 'lgnhpcl'
|
|
|
|
def test_railencrypt_38(self):
|
|
assert railencrypt(st='fuuq', k=570) == 'fuuq'
|
|
|
|
def test_railencrypt_39(self):
|
|
assert railencrypt(st='blxp', k=440) == 'blxp'
|
|
|
|
def test_railencrypt_40(self):
|
|
assert railencrypt(st='rocke', k=952) == 'rocke'
|
|
|
|
def test_railencrypt_41(self):
|
|
assert railencrypt(st='idpwv', k=815) == 'idpwv'
|
|
|
|
def test_railencrypt_42(self):
|
|
assert railencrypt(st='kkdjn', k=216) == 'kkdjn'
|
|
|
|
def test_railencrypt_43(self):
|
|
assert railencrypt(st='gllokah', k=393) == 'gllokah'
|
|
|
|
def test_railencrypt_44(self):
|
|
assert railencrypt(st='ary', k=827) == 'ary'
|
|
|
|
def test_railencrypt_45(self):
|
|
assert railencrypt(st='ikdd', k=577) == 'ikdd'
|
|
|
|
def test_railencrypt_46(self):
|
|
assert railencrypt(st='smyrpdjos', k=957) == 'smyrpdjos'
|
|
|
|
def test_railencrypt_47(self):
|
|
assert railencrypt(st='iiz', k=855) == 'iiz'
|
|
|
|
def test_railencrypt_48(self):
|
|
assert railencrypt(st='qldm', k=611) == 'qldm'
|
|
|
|
def test_railencrypt_49(self):
|
|
assert railencrypt(st='tncjnu', k=246) == 'tncjnu'
|
|
|
|
def test_railencrypt_50(self):
|
|
assert railencrypt(st='zl', k=412) == 'zl'
|
|
|
|
def test_railencrypt_51(self):
|
|
assert railencrypt(st='ixphdbjgt', k=607) == 'ixphdbjgt'
|
|
|
|
def test_railencrypt_52(self):
|
|
assert railencrypt(st='njwy', k=283) == 'njwy'
|
|
|
|
def test_railencrypt_53(self):
|
|
assert railencrypt(st='', k=648) == ''
|
|
|
|
def test_railencrypt_54(self):
|
|
assert railencrypt(st='lcu', k=713) == 'lcu'
|
|
|
|
def test_railencrypt_55(self):
|
|
assert railencrypt(st='qozh', k=309) == 'qozh'
|
|
|
|
def test_railencrypt_56(self):
|
|
assert railencrypt(st='zbwnf', k=859) == 'zbwnf'
|
|
|
|
def test_railencrypt_57(self):
|
|
assert railencrypt(st='djch', k=509) == 'djch'
|
|
|
|
def test_railencrypt_58(self):
|
|
assert railencrypt(st='nlhv', k=42) == 'nlhv'
|
|
|
|
def test_railencrypt_59(self):
|
|
assert railencrypt(st='iskgysc', k=421) == 'iskgysc'
|
|
|
|
def test_railencrypt_60(self):
|
|
assert railencrypt(st='u', k=269) == 'u'
|
|
|
|
def test_railencrypt_61(self):
|
|
assert railencrypt(st='mrt', k=835) == 'mrt'
|
|
|
|
def test_railencrypt_62(self):
|
|
assert railencrypt(st='jky', k=64) == 'jky'
|
|
|
|
def test_railencrypt_63(self):
|
|
assert railencrypt(st='fmuaq', k=245) == 'fmuaq'
|
|
|
|
def test_railencrypt_64(self):
|
|
assert railencrypt(st='ismu', k=647) == 'ismu'
|
|
|
|
def test_railencrypt_65(self):
|
|
assert railencrypt(st='qonukt', k=977) == 'qonukt'
|
|
|
|
def test_railencrypt_66(self):
|
|
assert railencrypt(st='o', k=155) == 'o'
|
|
|
|
def test_railencrypt_67(self):
|
|
assert railencrypt(st='hzaukhbl', k=918) == 'hzaukhbl'
|
|
|
|
def test_railencrypt_68(self):
|
|
assert railencrypt(st='kvfnh', k=352) == 'kvfnh'
|
|
|
|
def test_railencrypt_69(self):
|
|
assert railencrypt(st='ztkrsgbq', k=190) == 'ztkrsgbq'
|
|
|
|
def test_railencrypt_70(self):
|
|
assert railencrypt(st='vltccoq', k=647) == 'vltccoq'
|
|
|
|
def test_railencrypt_71(self):
|
|
assert railencrypt(st='nsqjubg', k=369) == 'nsqjubg'
|
|
|
|
def test_railencrypt_72(self):
|
|
assert railencrypt(st='', k=7) == ''
|
|
|
|
def test_railencrypt_73(self):
|
|
assert railencrypt(st='', k=473) == ''
|
|
|
|
def test_railencrypt_74(self):
|
|
assert railencrypt(st='poof', k=470) == 'poof'
|
|
|
|
def test_railencrypt_75(self):
|
|
assert railencrypt(st='iv', k=977) == 'iv'
|
|
|
|
def test_railencrypt_76(self):
|
|
assert railencrypt(st='', k=283) == ''
|
|
|
|
def test_railencrypt_77(self):
|
|
assert railencrypt(st='mefcqmjm', k=389) == 'mefcqmjm'
|
|
|
|
def test_railencrypt_78(self):
|
|
assert railencrypt(st='sz', k=387) == 'sz'
|
|
|
|
def test_railencrypt_79(self):
|
|
assert railencrypt(st='cg', k=815) == 'cg'
|
|
|
|
def test_railencrypt_80(self):
|
|
assert railencrypt(st='liarkxvgv', k=450) == 'liarkxvgv'
|
|
|
|
def test_railencrypt_81(self):
|
|
assert railencrypt(st='ud', k=436) == 'ud'
|
|
|
|
def test_railencrypt_82(self):
|
|
assert railencrypt(st='tmd', k=842) == 'tmd'
|
|
|
|
def test_railencrypt_83(self):
|
|
assert railencrypt(st='spcdtdzjz', k=559) == 'spcdtdzjz'
|
|
|
|
def test_railencrypt_84(self):
|
|
assert railencrypt(st='c', k=181) == 'c'
|
|
|
|
def test_railencrypt_85(self):
|
|
assert railencrypt(st='jmnbazu', k=405) == 'jmnbazu'
|
|
|
|
def test_railencrypt_86(self):
|
|
assert railencrypt(st='jtouhv', k=156) == 'jtouhv'
|
|
|
|
def test_railencrypt_87(self):
|
|
assert railencrypt(st='iyp', k=309) == 'iyp'
|
|
|
|
def test_railencrypt_88(self):
|
|
assert railencrypt(st='lu', k=269) == 'lu'
|
|
|
|
def test_railencrypt_89(self):
|
|
assert railencrypt(st='etzrxuupe', k=878) == 'etzrxuupe'
|
|
|
|
def test_railencrypt_90(self):
|
|
assert railencrypt(st='io', k=441) == 'io'
|
|
|
|
def test_railencrypt_91(self):
|
|
assert railencrypt(st='ujv', k=156) == 'ujv'
|
|
|
|
def test_railencrypt_92(self):
|
|
assert railencrypt(st='cg', k=855) == 'cg'
|
|
|
|
def test_railencrypt_93(self):
|
|
assert railencrypt(st='zjcev', k=706) == 'zjcev'
|
|
|
|
def test_railencrypt_94(self):
|
|
assert railencrypt(st='uh', k=611) == 'uh'
|
|
|
|
def test_railencrypt_95(self):
|
|
assert railencrypt(st='', k=410) == ''
|
|
|
|
def test_railencrypt_96(self):
|
|
assert railencrypt(st='p', k=979) == 'p'
|
|
|
|
def test_railencrypt_97(self):
|
|
assert railencrypt(st='oastjtv', k=230) == 'oastjtv'
|
|
|
|
def test_railencrypt_98(self):
|
|
assert railencrypt(st='gmcoke', k=338) == 'gmcoke'
|
|
|
|
def test_railencrypt_99(self):
|
|
assert railencrypt(st='p', k=559) == 'p'
|
|
|
|
def test_railencrypt_100(self):
|
|
assert railencrypt(st='hfam', k=855) == 'hfam' |