예제 #1
0
 def test_same_first_and_last_characters(self):
     self.assertIs(is_isogram("angola"), False)
예제 #2
0
 def test_empty_string(self):
     assert is_isogram("") == True
예제 #3
0
 def test_word_with_duplicated_character_in_mixed_case_lowercase_first(self):
     self.assertIs(is_isogram("alphAbet"), False)
예제 #4
0
 def test_word_with_duplicated_letter_in_mixed_case_lowercase_first(self):
     self.assertIs(is_isogram("alphAbet"), False)
예제 #5
0
 def test_duplicated_character_in_the_middle(self):
     assert is_isogram("accentor") == False
예제 #6
0
 def test_longest_reported_english_isogram(self):
     self.assertIs(is_isogram("subdermatoglyphic"), True)
예제 #7
0
 def test_made_up_name_that_is_an_isogram(self):
     self.assertIs(is_isogram("Emily Jung Schwartzkopf"), True)
예제 #8
0
 def test_isogram_with_only_lower_case_characters(self):
     self.assertIs(is_isogram("isogram"), True)
예제 #9
0
 def test_word_with_one_duplicated_character(self):
     self.assertIs(is_isogram("eleven"), False)
예제 #10
0
 def test_empty_string(self):
     self.assertTrue(is_isogram(""))
예제 #11
0
import isogram
print(isogram.is_isogram("isogram"))
예제 #12
0
 def test_isogram_with_duplicated_non_letter_character(self):
     self.assertTrue(is_isogram("Hjelmqvist-Gryb-Zock-Pfund-Wax"))
예제 #13
0
 def test_isogram_with_duplicated_hyphen(self):
     self.assertIs(is_isogram("six-year-old"), True)
예제 #14
0
 def test_same_first_and_last_characters(self):
     self.assertIs(is_isogram("angola"), False)
예제 #15
0
 def test_isogram_equals(self):
     self.assertEquals(is_isogram('Dermatoglyphics'), True)
     self.assertEquals(is_isogram('isogram'), True)
     self.assertEquals(is_isogram('thumbscrewjapingly'), True)
     self.assertEquals(is_isogram('moose'), False)
     self.assertEquals(is_isogram('abcdefghijklmnopqrstuwwxyz'), False)
예제 #16
0
 def test_longest_reported_english_isogram(self):
     self.assertIs(is_isogram("subdermatoglyphic"), True)
예제 #17
0
 def test_isogram_with_only_lower_case_characters(self):
     self.assertIs(is_isogram("isogram"), True)
예제 #18
0
 def test_word_with_duplicated_character_in_mixed_case(self):
     self.assertIs(is_isogram("Alphabet"), False)
예제 #19
0
 def test_hypothetical_isogrammic_word_with_hyphen(self):
     self.assertIs(is_isogram("thumbscrew-japingly"), True)
예제 #20
0
 def test_hypothetical_isogrammic_word_with_hyphen(self):
     self.assertIs(is_isogram("thumbscrew-japingly"), True)
예제 #21
0
 def test_isogram_with_duplicated_letter_and_nonletter_character(self):
     self.assertIs(is_isogram("Aleph Bot Chap"), False)
예제 #22
0
 def test_isogram_with_duplicated_non_letter_character(self):
     self.assertIs(is_isogram("Hjelmqvist-Gryb-Zock-Pfund-Wax"), True)
예제 #23
0
 def test_made_up_name_that_is_an_isogram(self):
     assert is_isogram("Emily Jung Schwartzkopf") == True
예제 #24
0
 def test_made_up_name_that_is_an_isogram(self):
     self.assertIs(is_isogram("Emily Jung Schwartzkopf"), True)
예제 #25
0
 def test_isogram_with_duplicated_letter_and_nonletter_character(self):
     assert is_isogram("Aleph Bot Chap") == False
예제 #26
0
 def test_duplicated_character_in_the_middle(self):
     self.assertIs(is_isogram("accentor"), False)
예제 #27
0
 def test_word_with_one_duplicated_character_from_the_end_of_the_alphabet(self):
     self.assertIs(is_isogram("zzyzx"), False)
예제 #28
0
 def test_isogram_with_duplicated_letter_and_nonletter_character(self):
     self.assertIs(is_isogram("Aleph Bot Chap"), False)
예제 #29
0
 def test_hypothetical_word_with_duplicated_character_following_hyphen(self):
     self.assertIs(is_isogram("thumbscrew-jappingly"), False)
예제 #30
0
 def test_empty_string(self):
     self.assertIs(is_isogram(""), True)
예제 #31
0
 def test_isogram_false(self):
     self.assertFalse(is_isogram("abcdeaa"))
     self.assertFalse(is_isogram("abcdeaB"))
예제 #32
0
 def test_isogram_with_only_lower_case_characters(self):
     assert is_isogram("isogram") == True
예제 #33
0
 def test_isogram_true(self):
     self.assertTrue(is_isogram("abcde"))
     self.assertTrue(is_isogram(''))
예제 #34
0
 def test_word_with_one_duplicated_character(self):
     assert is_isogram("eleven") == False
예제 #35
0
 def test_word_with_one_duplicated_character(self):
     self.assertIs(is_isogram("eleven"), False)
예제 #36
0
 def test_longest_reported_english_isogram(self):
     assert is_isogram("subdermatoglyphic") == True
예제 #37
0
 def test_word_with_duplicated_character_in_mixed_case(self):
     self.assertIs(is_isogram("Alphabet"), False)
예제 #38
0
 def test_word_with_duplicated_character_in_mixed_case(self):
     assert is_isogram("Alphabet") == False
예제 #39
0
 def test_isogram_with_duplicated_hyphen(self):
     self.assertIs(is_isogram("six-year-old"), True)
예제 #40
0
 def test_hypothetical_isogrammic_word_with_hyphen(self):
     assert is_isogram("thumbscrew-japingly") == True
예제 #41
0
 def test_duplicated_character_in_the_middle(self):
     self.assertIs(is_isogram("accentor"), False)
예제 #42
0
 def test_isogram_with_duplicated_hyphen(self):
     assert is_isogram("six-year-old") == True
예제 #43
0
 def test_empty_string(self):
     self.assertIs(is_isogram(""), True)
예제 #44
0
 def test_word_with_one_duplicated_character_from_end_of_alphabet(self):
     self.assertIs(is_isogram("zzyzx"), False)