예제 #1
0
 def test_gooey(self):
     sentence = "A is gooey but B is gooier and C is gooiest"
     self.assertEqual(tetravocalic(sentence.replace(' ', '\n')),
                      ['gooier', 'gooiest'])
예제 #2
0
 def test_non_consecutive(self):
     self.assertEqual(tetravocalic("aeixou"), [])
예제 #3
0
 def test_onomatopoeia(self):
     self.assertEqual(tetravocalic("onomatopoeia"), ['onomatopoeia'])
예제 #4
0
 def test_four_vowels(self):
     self.assertEqual(tetravocalic("aeio"), ['aeio'])
예제 #5
0
 def test_five_vowels(self):
     self.assertEqual(tetravocalic("aeiou"), ['aeiou'])
 def test_gooey(self):
     sentence = "A is gooey but B is gooier and C is gooiest"
     self.assertEqual(
         tetravocalic(sentence.replace(' ', '\n')),
         ['gooier', 'gooiest']
     )
예제 #7
0
 def test_three_vowels(self):
     self.assertEqual(tetravocalic("aei"), [])
 def test_onomatopoeia(self):
     self.assertEqual(tetravocalic("onomatopoeia"), ['onomatopoeia'])
 def test_non_consecutive(self):
     self.assertEqual(tetravocalic("aeixou"), [])
 def test_five_vowels(self):
     self.assertEqual(tetravocalic("aeiou"), ['aeiou'])
 def test_four_vowels(self):
     self.assertEqual(tetravocalic("aeio"), ['aeio'])
 def test_three_vowels(self):
     self.assertEqual(tetravocalic("aei"), [])