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): assert longest_sorted_substr(s='matbwrp') == 'at' def test_longest_sorted_substr_2(self): assert longest_sorted_substr(s='qfopedtdg') == 'fop' def test_longest_sorted_substr_3(self): assert longest_sorted_substr(s='kcp') == 'cp' def test_longest_sorted_substr_4(self): assert longest_sorted_substr(s='vnfz') == 'fz' def test_longest_sorted_substr_5(self): assert longest_sorted_substr(s='odfcgx') == 'cgx' def test_longest_sorted_substr_6(self): assert longest_sorted_substr(s='pvghsbjun') == 'ghs' def test_longest_sorted_substr_7(self): assert longest_sorted_substr(s='implu') == 'imp' def test_longest_sorted_substr_8(self): assert longest_sorted_substr(s='ry') == 'ry' def test_longest_sorted_substr_9(self): assert longest_sorted_substr(s='gkgyu') == 'gk' def test_longest_sorted_substr_10(self): assert longest_sorted_substr(s='mmltst') == 'mm' def test_longest_sorted_substr_11(self): assert longest_sorted_substr(s='wqb') == 'w' def test_longest_sorted_substr_12(self): assert longest_sorted_substr(s='wbm') == 'bm' def test_longest_sorted_substr_13(self): assert longest_sorted_substr(s='dhvpa') == 'dhv' def test_longest_sorted_substr_14(self): assert longest_sorted_substr(s='outpjl') == 'ou' def test_longest_sorted_substr_15(self): assert longest_sorted_substr(s='jcubqguw') == 'guw' def test_longest_sorted_substr_16(self): assert longest_sorted_substr(s='bfosuwy') == 'bfosuwy' def test_longest_sorted_substr_17(self): assert longest_sorted_substr(s='mxponpls') == 'mx' def test_longest_sorted_substr_18(self): assert longest_sorted_substr(s='sr') == 's' def test_longest_sorted_substr_19(self): assert longest_sorted_substr(s='xfsumjg') == 'fsu' def test_longest_sorted_substr_20(self): assert longest_sorted_substr(s='wjoq') == 'joq' def test_longest_sorted_substr_21(self): assert longest_sorted_substr(s='ngps') == 'gps' def test_longest_sorted_substr_22(self): assert longest_sorted_substr(s='szmn') == 'sz' def test_longest_sorted_substr_23(self): assert longest_sorted_substr(s='gafni') == 'afn' def test_longest_sorted_substr_24(self): assert longest_sorted_substr(s='iedhk') == 'dhk' def test_longest_sorted_substr_25(self): assert longest_sorted_substr(s='pr') == 'pr' def test_longest_sorted_substr_26(self): assert longest_sorted_substr(s='jmbyfose') == 'fos' def test_longest_sorted_substr_27(self): assert longest_sorted_substr(s='cg') == 'cg' def test_longest_sorted_substr_28(self): assert longest_sorted_substr(s='li') == 'l' def test_longest_sorted_substr_29(self): assert longest_sorted_substr(s='fwghigvnj') == 'ghi' def test_longest_sorted_substr_30(self): assert longest_sorted_substr(s='skeen') == 'een' def test_longest_sorted_substr_31(self): assert longest_sorted_substr(s='idzpdfoxv') == 'dfox' def test_longest_sorted_substr_32(self): assert longest_sorted_substr(s='gtl') == 'gt' def test_longest_sorted_substr_33(self): assert longest_sorted_substr(s='ycnqwl') == 'cnqw' def test_longest_sorted_substr_34(self): assert longest_sorted_substr(s='jwkcsy') == 'csy' def test_longest_sorted_substr_35(self): assert longest_sorted_substr(s='bueo') == 'bu' def test_longest_sorted_substr_36(self): assert longest_sorted_substr(s='tu') == 'tu' def test_longest_sorted_substr_37(self): assert longest_sorted_substr(s='jzg') == 'jz' def test_longest_sorted_substr_38(self): assert longest_sorted_substr(s='fn') == 'fn' def test_longest_sorted_substr_39(self): assert longest_sorted_substr(s='dttasc') == 'dtt' def test_longest_sorted_substr_40(self): assert longest_sorted_substr(s='oj') == 'o' def test_longest_sorted_substr_41(self): assert longest_sorted_substr(s='plp') == 'lp' def test_longest_sorted_substr_42(self): assert longest_sorted_substr(s='nea') == 'n' def test_longest_sorted_substr_43(self): assert longest_sorted_substr(s='fihbfup') == 'bfu' def test_longest_sorted_substr_44(self): assert longest_sorted_substr(s='zhkvwbza') == 'hkvw' def test_longest_sorted_substr_45(self): assert longest_sorted_substr(s='mzmls') == 'mz' def test_longest_sorted_substr_46(self): assert longest_sorted_substr(s='puh') == 'pu' def test_longest_sorted_substr_47(self): assert longest_sorted_substr(s='riwo') == 'iw' def test_longest_sorted_substr_48(self): assert longest_sorted_substr(s='vhcpcn') == 'cp' def test_longest_sorted_substr_49(self): assert longest_sorted_substr(s='xefaocc') == 'ef' def test_longest_sorted_substr_50(self): assert longest_sorted_substr(s='cphouvkfr') == 'houv' def test_longest_sorted_substr_51(self): assert longest_sorted_substr(s='qdre') == 'dr' def test_longest_sorted_substr_52(self): assert longest_sorted_substr(s='ssdtvwtlh') == 'dtvw' def test_longest_sorted_substr_53(self): assert longest_sorted_substr(s='cxigclkxr') == 'cx' def test_longest_sorted_substr_54(self): assert longest_sorted_substr(s='lvacw') == 'acw' def test_longest_sorted_substr_55(self): assert longest_sorted_substr(s='ayxvpywsb') == 'ay' def test_longest_sorted_substr_56(self): assert longest_sorted_substr(s='vncy') == 'cy' def test_longest_sorted_substr_57(self): assert longest_sorted_substr(s='ijbdu') == 'bdu' def test_longest_sorted_substr_58(self): assert longest_sorted_substr(s='ye') == 'y' def test_longest_sorted_substr_59(self): assert longest_sorted_substr(s='tkgcyndv') == 'cy' def test_longest_sorted_substr_60(self): assert longest_sorted_substr(s='ckkx') == 'ckkx' def test_longest_sorted_substr_61(self): assert longest_sorted_substr(s='fjsyjcvmp') == 'fjsy' def test_longest_sorted_substr_62(self): assert longest_sorted_substr(s='efomqrla') == 'efo' def test_longest_sorted_substr_63(self): assert longest_sorted_substr(s='bjkspkdj') == 'bjks' def test_longest_sorted_substr_64(self): assert longest_sorted_substr(s='rtikrs') == 'ikrs' def test_longest_sorted_substr_65(self): assert longest_sorted_substr(s='tbbxhrid') == 'bbx' def test_longest_sorted_substr_66(self): assert longest_sorted_substr(s='bbo') == 'bbo' def test_longest_sorted_substr_67(self): assert longest_sorted_substr(s='fusnpw') == 'npw' def test_longest_sorted_substr_68(self): assert longest_sorted_substr(s='aihs') == 'ai' def test_longest_sorted_substr_69(self): assert longest_sorted_substr(s='xuwidu') == 'uw' def test_longest_sorted_substr_70(self): assert longest_sorted_substr(s='zs') == 'z' def test_longest_sorted_substr_71(self): assert longest_sorted_substr(s='aytuwx') == 'tuwx' def test_longest_sorted_substr_72(self): assert longest_sorted_substr(s='xosuypfeh') == 'osuy' def test_longest_sorted_substr_73(self): assert longest_sorted_substr(s='tachdebss') == 'ach' def test_longest_sorted_substr_74(self): assert longest_sorted_substr(s='vrjvakny') == 'akny' def test_longest_sorted_substr_75(self): assert longest_sorted_substr(s='ixsus') == 'ix' def test_longest_sorted_substr_76(self): assert longest_sorted_substr(s='srlu') == 'lu' def test_longest_sorted_substr_77(self): assert longest_sorted_substr(s='xncrom') == 'cr' def test_longest_sorted_substr_78(self): assert longest_sorted_substr(s='rs') == 'rs' def test_longest_sorted_substr_79(self): assert longest_sorted_substr(s='nadg') == 'adg' def test_longest_sorted_substr_80(self): assert longest_sorted_substr(s='rethvq') == 'et' def test_longest_sorted_substr_81(self): assert longest_sorted_substr(s='zqwbbpee') == 'bbp' def test_longest_sorted_substr_82(self): assert longest_sorted_substr(s='lhowqu') == 'how' def test_longest_sorted_substr_83(self): assert longest_sorted_substr(s='oio') == 'io' def test_longest_sorted_substr_84(self): assert longest_sorted_substr(s='spqldzj') == 'pq' def test_longest_sorted_substr_85(self): assert longest_sorted_substr(s='lrxtusdp') == 'lrx' def test_longest_sorted_substr_86(self): assert longest_sorted_substr(s='svxhygma') == 'svx' def test_longest_sorted_substr_87(self): assert longest_sorted_substr(s='qp') == 'q' def test_longest_sorted_substr_88(self): assert longest_sorted_substr(s='zybx') == 'bx' def test_longest_sorted_substr_89(self): assert longest_sorted_substr(s='wsaghff') == 'agh' def test_longest_sorted_substr_90(self): assert longest_sorted_substr(s='pittas') == 'itt' def test_longest_sorted_substr_91(self): assert longest_sorted_substr(s='cuqfox') == 'fox' def test_longest_sorted_substr_92(self): assert longest_sorted_substr(s='nhda') == 'n' def test_longest_sorted_substr_93(self): assert longest_sorted_substr(s='ncl') == 'cl' def test_longest_sorted_substr_94(self): assert longest_sorted_substr(s='iy') == 'iy' def test_longest_sorted_substr_95(self): assert longest_sorted_substr(s='qmbpsye') == 'bpsy' def test_longest_sorted_substr_96(self): assert longest_sorted_substr(s='kmn') == 'kmn' def test_longest_sorted_substr_97(self): assert longest_sorted_substr(s='ndfgtj') == 'dfgt' def test_longest_sorted_substr_98(self): assert longest_sorted_substr(s='xbge') == 'bg' def test_longest_sorted_substr_99(self): assert longest_sorted_substr(s='jgqjis') == 'gq' def test_longest_sorted_substr_100(self): assert longest_sorted_substr(s='vwxhie') == 'vwx'