-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_test.py
More file actions
47 lines (30 loc) · 1.31 KB
/
run_test.py
File metadata and controls
47 lines (30 loc) · 1.31 KB
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
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, 'parser/')
import unittest
import parser
class TestStringMethods(unittest.TestCase):
def test_iterativeFib(self):
self.assertTrue(parser.runUnitTest("src_files/iterativeFib.src"))
def test_logicals(self):
self.assertTrue(parser.runUnitTest("src_files/logicals.src"))
def test_multipleProcs(self):
self.assertTrue(parser.runUnitTest("src_files/multipleProcs.src"))
def test_math(self):
self.assertTrue(parser.runUnitTest("src_files/math.src"))
def test_recursiveFib(self):
self.assertTrue(parser.runUnitTest("src_files/recursiveFib.src"))
def test_source(self):
self.assertTrue(parser.runUnitTest("src_files/source.src"))
def test_test1b(self):
self.assertTrue(parser.runUnitTest("src_files/test1b.src"))
def test_test1(self):
self.assertTrue(parser.runUnitTest("src_files/test1.src"))
def test_test2(self):
self.assertTrue(parser.runUnitTest("src_files/test2.src"))
def test_test_heap(self):
self.assertTrue(parser.runUnitTest("src_files/test_heap.src"))
def test_test_program_minimal(self):
self.assertTrue(parser.runUnitTest("src_files/test_program_minimal.src"))
if __name__ == '__main__':
unittest.main()