Exemplo n.º 1
0
 def test_underscore(self):
     self.assertFalse(is_word("not_a_word"))
Exemplo n.º 2
0
 def test_exclamation_mark(self):
     self.assertFalse(is_word("what!"))
Exemplo n.º 3
0
 def test_digits(self):
     self.assertFalse(is_word("hell0"))
Exemplo n.º 4
0
 def test_comma(self):
     self.assertFalse(is_word("yes,"))
Exemplo n.º 5
0
 def test_question_mark(self):
     self.assertFalse(is_word("what?"))
Exemplo n.º 6
0
 def test_hyphen(self):
     self.assertTrue(is_word("self-report"))
Exemplo n.º 7
0
 def test_period(self):
     self.assertFalse(is_word("No."))
Exemplo n.º 8
0
 def test_apostrophe(self):
     self.assertTrue(is_word("don't"))
Exemplo n.º 9
0
 def test_one_word(self):
     self.assertTrue(is_word("ice"))
     self.assertTrue(is_word("cream"))
Exemplo n.º 10
0
 def test_with_space(self):
     self.assertFalse(is_word("ice cream"))
Exemplo n.º 11
0
 def test_capitalized(self):
     self.assertTrue(is_word("Trey"))
Exemplo n.º 12
0
 def test_empty_string(self):
     self.assertFalse(is_word(""))