forked from she-code-africa/python-ta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
64 lines (52 loc) · 1.37 KB
/
test.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import unittest
from src import app
class Test(unittest.TestCase):
def test_str_uppercase(self):
"""
Test the string for uppercase
"""
output = "foo".upper()
expected = "FOO"
self.assertEqual(output, expected)
def test_case0(self):
"""
Testcase 0
"""
input = "wow"
output = app.solution(input)
self.assertEqual(output, True)
def test_case1(self):
"""
Testcase 1
"""
input = "random string"
output = app.solution(input)
self.assertEqual(output, False)
def test_case2(self):
"""
Testcase 2
"""
input = "wassamassaw"
output = app.solution(input)
self.assertEqual(output, True)
def test_case3(self):
"""
Testcase 3
"""
input = "satanoscillatemymetallicsonatas"
output = app.solution(input)
self.assertEqual(output, True)
def test_case4(self):
"""
Testcase 4
"""
input = "in girum imus nocte et consumimur igni"
output = app.solution(input)
self.assertEqual(output, True)
def test_case5(self):
"Testcase 5"
input = "No lemoned, no melon"
output = app.solution(input)
self.assertEqual(output, False)
if __name__ == "__main__":
unittest.main()