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