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='mU') == 'm' def test_longest_sorted_substr_2(self): assert longest_sorted_substr(s='3#') == '3' def test_longest_sorted_substr_3(self): assert longest_sorted_substr(s='1JbKS;L') == '1Jb' def test_longest_sorted_substr_4(self): assert longest_sorted_substr(s='fKE'3;') == ''3;' def test_longest_sorted_substr_5(self): assert longest_sorted_substr(s='-",A') == '",A' def test_longest_sorted_substr_6(self): assert longest_sorted_substr(s='\8UD' def test_longest_sorted_substr_15(self): assert longest_sorted_substr(s='s') == 's' def test_longest_sorted_substr_16(self): assert longest_sorted_substr(s='{EX_?r*M$') == 'EX_' def test_longest_sorted_substr_17(self): assert longest_sorted_substr(s='2@U+0&') == '2@U' def test_longest_sorted_substr_18(self): assert longest_sorted_substr(s='Ze') == 'Ze' def test_longest_sorted_substr_19(self): assert longest_sorted_substr(s='{-7R<])') == '-7R' def test_longest_sorted_substr_20(self): assert longest_sorted_substr(s='Mh|') == 'Mh|' def test_longest_sorted_substr_21(self): assert longest_sorted_substr(s='ZOk_Zq') == 'Ok' def test_longest_sorted_substr_22(self): assert longest_sorted_substr(s='jpb') == 'jp' def test_longest_sorted_substr_23(self): assert longest_sorted_substr(s='$') == '$' def test_longest_sorted_substr_24(self): assert longest_sorted_substr(s='2v7Z') == '2v' def test_longest_sorted_substr_25(self): assert longest_sorted_substr(s='3NyuK') == '3Ny' def test_longest_sorted_substr_26(self): assert longest_sorted_substr(s='Aj3~Y') == 'Aj' def test_longest_sorted_substr_27(self): assert longest_sorted_substr(s='lgoz}B4A~') == 'goz}' def test_longest_sorted_substr_28(self): assert longest_sorted_substr(s='~