-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoveLastVowelTest.py
More file actions
26 lines (21 loc) · 979 Bytes
/
RemoveLastVowelTest.py
File metadata and controls
26 lines (21 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import unittest
from RemoveLastVowel import removeLastVowel
class TestRemoveLastVowel(unittest.TestCase):
def test_1(self):
output = removeLastVowel("Those who dare to fail miserably can achieve greatly.")
correct = "Thos wh dar t fal miserbly cn achiev gretly."
self.assertEqual(correct, output)
def test_2(self):
output = removeLastVowel("Love is a serious mental disease.")
correct = "Lov s serios mentl diseas."
self.assertEqual(correct, output)
def test_3(self):
output = removeLastVowel("Get busy living or get busy dying.")
correct = "Gt bsy livng r gt bsy dyng."
self.assertEqual(correct, output)
def test_4(self):
output = removeLastVowel("If you want to live a happy life, tie it to a goal, not to people.")
correct = "f yo wnt t liv hppy lif, ti t t gol, nt t peopl."
self.assertEqual(correct, output)
if __name__ == "__main__":
unittest.main()