-
Notifications
You must be signed in to change notification settings - Fork 101
/
test.py
64 lines (52 loc) · 1.27 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 = 2
output = app.solution(input)
self.assertEqual(output, True)
def test_case1(self):
"""
Testcase 1
"""
input = 24
output = app.solution(input)
self.assertEqual(output, False)
def test_case2(self):
"""
Testcase 2
"""
input = 37
output = app.solution(input)
self.assertEqual(output, True)
def test_case3(self):
"""
Testcase 3
"""
input = 73
output = app.solution(input)
self.assertEqual(output, True)
def test_case4(self):
"""
Testcase 4
"""
input = 56
output = app.solution(input)
self.assertEqual(output, True)
def test_case5(self):
"Testcase 5"
input = 97
output = app.solution(input)
self.assertEqual(output, False)
if __name__ == "__main__":
unittest.main()