コード例 #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'])
コード例 #6
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']
     )
コード例 #7
0
 def test_three_vowels(self):
     self.assertEqual(tetravocalic("aei"), [])
コード例 #8
0
 def test_onomatopoeia(self):
     self.assertEqual(tetravocalic("onomatopoeia"), ['onomatopoeia'])
コード例 #9
0
 def test_non_consecutive(self):
     self.assertEqual(tetravocalic("aeixou"), [])
コード例 #10
0
 def test_five_vowels(self):
     self.assertEqual(tetravocalic("aeiou"), ['aeiou'])
コード例 #11
0
 def test_four_vowels(self):
     self.assertEqual(tetravocalic("aeio"), ['aeio'])
コード例 #12
0
 def test_three_vowels(self):
     self.assertEqual(tetravocalic("aei"), [])