22
33from isogram import is_isogram
44
5-
65# Tests adapted from `problem-specifications//canonical-data.json` @ v1.7.0
76
8- class IsogramTest (unittest .TestCase ):
97
8+ class IsogramTest (unittest .TestCase ):
109 def test_empty_string (self ):
1110 self .assertIs (is_isogram ("" ), True )
1211
@@ -16,7 +15,7 @@ def test_isogram_with_only_lower_case_characters(self):
1615 def test_word_with_one_duplicated_character (self ):
1716 self .assertIs (is_isogram ("eleven" ), False )
1817
19- def test_word_with_one_duplicated_character_from_end_of_alphabet (self ):
18+ def test_word_with_one_duplicated_character_from_the_end_of_the_alphabet (self ):
2019 self .assertIs (is_isogram ("zzyzx" ), False )
2120
2221 def test_longest_reported_english_isogram (self ):
@@ -25,13 +24,13 @@ def test_longest_reported_english_isogram(self):
2524 def test_word_with_duplicated_character_in_mixed_case (self ):
2625 self .assertIs (is_isogram ("Alphabet" ), False )
2726
28- def test_word_with_duplicated_letter_in_mixed_case_lowercase_first (self ):
27+ def test_word_with_duplicated_character_in_mixed_case_lowercase_first (self ):
2928 self .assertIs (is_isogram ("alphAbet" ), False )
3029
3130 def test_hypothetical_isogrammic_word_with_hyphen (self ):
3231 self .assertIs (is_isogram ("thumbscrew-japingly" ), True )
3332
34- def test_hypothetical_word_with_duplicate_character_following_hyphen (self ):
33+ def test_hypothetical_word_with_duplicated_character_following_hyphen (self ):
3534 self .assertIs (is_isogram ("thumbscrew-jappingly" ), False )
3635
3736 def test_isogram_with_duplicated_hyphen (self ):
@@ -46,11 +45,6 @@ def test_duplicated_character_in_the_middle(self):
4645 def test_same_first_and_last_characters (self ):
4746 self .assertIs (is_isogram ("angola" ), False )
4847
49- # Additional tests for this track
50-
51- def test_isogram_with_duplicated_letter_and_nonletter_character (self ):
52- self .assertIs (is_isogram ("Aleph Bot Chap" ), False )
53-
5448
55- if __name__ == ' __main__' :
49+ if __name__ == " __main__" :
5650 unittest .main ()
0 commit comments