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

305 lines
10 KiB
Python
Raw Normal View History

2023-11-15 17:23:53 +00:00
from unittest import TestCase
from benchmark.longest_substring import longest_sorted_substr
class Test_longest_sorted_substr(TestCase):
def test_longest_sorted_substr_1(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='mU') == 'm'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_2(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='3#') == '3'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_3(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='1JbKS;L') == '1Jb'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_4(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='fKE'3;') == ''3;'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_5(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='-",A') == '",A'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_6(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='\8U<J+n') == '8U'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_7(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Q"Vv_mhE^') == '"Vv'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_8(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='a59bP?V9') == '59b'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_9(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='20Y\#mI') == '0Y\'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_10(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='j_Va6') == 'Va'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_11(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=']') == ']'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_12(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='{NB`{P') == 'B`{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_13(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='lgoz}Pz1') == 'goz}'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_14(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='>D$i$') == '>D'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_15(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='s') == 's'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_16(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='{EX_?r*M$') == 'EX_'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_17(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2@U+0&') == '2@U'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_18(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Ze') == 'Ze'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_19(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='{-7R<])') == '-7R'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_20(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Mh|') == 'Mh|'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_21(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='ZOk_Zq') == 'Ok'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_22(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='jpb') == 'jp'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_23(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='$') == '$'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_24(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2v7Z') == '2v'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_25(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='3NyuK') == '3Ny'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_26(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Aj3~Y') == 'Aj'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_27(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='lgoz}B4A~') == 'goz}'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_28(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='~<zI|Pz1') == '<z'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_29(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='rNBI{P') == 'BI{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_30(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='gNB`{P') == 'B`{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_31(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='>$cz^[IJ') == '$cz'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_32(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='C{oC') == 'C{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_33(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='![Wg>"|WS') == '!['
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_34(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='_PI`^+g') == 'I`'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_35(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=';oLU=(') == ';o'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_36(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2XDPJ-w') == '2X'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_37(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='v') == 'v'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_38(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='{') == '{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_39(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='G-H9~') == '-H'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_40(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='3-H9~') == '-H'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_41(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='_A=') == '_'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_42(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Dnvj+Qq)~') == 'Dnv'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_43(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='|/qEawEd#') == 'Eaw'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_44(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='/q#[p') == '#[p'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_45(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='g-7RcIK') == '-7Rc'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_46(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='a5FGdQ') == '5FGd'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_47(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='-#') == '-'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_48(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='L@n0') == '@n'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_49(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='P') == 'P'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_50(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='') == ''
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_51(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=':') == ':'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_52(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='ro') == 'r'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_53(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='qgL') == 'q'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_54(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='W"') == 'W'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_55(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='ocq!"') == 'cq'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_56(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Aj6') == 'Aj'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_57(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='BF`=^p0') == 'BF`'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_58(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='0kA') == '0k'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_59(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='rWYD') == 'WY'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_60(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='us{<;') == 's{'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_61(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='q!/=cIK') == '!/=c'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_62(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='ol0D~') == '0D~'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_63(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='PJ\W%5Z') == '%5Z'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_64(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=')tNKf BT') == ' BT'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_65(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='D\TAy"') == 'D\'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_66(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2J*ZJg!u') == '2J'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_67(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='c7z') == '7z'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_68(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='=') == '='
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_69(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='4RS') == '4RS'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_70(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='tH%dBe`') == '%d'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_71(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='M`%K') == 'M`'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_72(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='*XU1YYd') == '1YYd'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_73(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='AI,Z,_r[*') == ',_r'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_74(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='#') == '#'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_75(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='!G$7Ok^') == '$7Ok'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_76(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='[thtyT') == 'hty'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_77(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='Cnq|fQE"') == 'Cnq|'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_78(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='~c') == '~'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_79(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=')^'') == ')^'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_80(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=' !G') == ' !G'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_81(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=' 3v`y`') == ' 3v'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_82(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='ui9') == 'u'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_83(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2`b') == '2`b'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_84(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='F,~YHR') == ',~'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_85(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=',[b') == ',[b'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_86(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='}M\$WqjK') == '$Wq'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_87(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='GBRa/y%<H') == 'BRa'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_88(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='%ZbEQ-}jO') == '%Zb'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_89(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='|K?T+N'B]') == ''B]'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_90(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=',+:]Xy') == '+:]'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_91(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='2Vp[a') == '2Vp'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_92(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='/mg,s') == '/m'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_93(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='dw>') == 'dw'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_94(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='aEZ') == 'EZ'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_95(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='-SA+%!#Gu') == '!#Gu'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_96(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='o-u') == '-u'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_97(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='::') == '::'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_98(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='5$QL<\`') == '<\`'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_99(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s=':pb%Mx|') == '%Mx|'
2023-11-15 17:23:53 +00:00
def test_longest_sorted_substr_100(self):
2023-12-09 10:56:23 +00:00
assert longest_sorted_substr(s='-gVa') == '-g'