Exemplo n.º 1
0
 def test_bad_input(self):
     word1 = "sq32e"
     word2 = "one"
     output = isInDict(word1)
     self.assertEqual(output, False)
     output = rhymes(word1, word2)
     self.assertEqual(output, False)
Exemplo n.º 2
0
 def test_no_rhyme(self):
     word1 = "call"
     word2 = "one"
     output = rhymes(word1, word2)
     self.assertEqual(output, False)
Exemplo n.º 3
0
 def test_wrong_stress(self):
     word1 = "someone"
     word2 = "one"
     output = rhymes(word1, word2)
     self.assertEqual(output, False)
Exemplo n.º 4
0
 def test_rhyme(self):
     word1 = "call"
     word2 = "ball"
     output = rhymes(word1, word2)
     self.assertEqual(output, True)