-
Notifications
You must be signed in to change notification settings - Fork 1
/
TestBunny.py
executable file
·69 lines (60 loc) · 1.74 KB
/
TestBunny.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
65
66
67
68
69
#!/usr/bin/env python3
import unittest
from main import main
class TestBunny(unittest.TestCase):
def test_bunny06(self):
main(
[
"examples/bunny/bunny_0.6.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.6.nc",
"examples/bunny/bunny_0.6_out.nc",
]
)
def test_bunny04(self):
main(
[
"examples/bunny/bunny_0.4.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.4.nc",
"examples/bunny/bunny_0.4_out.nc",
]
)
def test_bunny03(self):
main(
[
"examples/bunny/bunny_0.3.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.3.nc",
"examples/bunny/bunny_0.3_out.nc",
]
)
def test_bunny02(self):
main(
[
"examples/bunny/bunny_0.2.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.2.nc",
"examples/bunny/bunny_0.2_out.nc",
]
)
def test_bunny015(self):
main(
[
"examples/bunny/bunny_0.15.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.15.nc",
"examples/bunny/bunny_0.15_out.nc",
]
)
def test_bunny01(self):
main(
[
"examples/bunny/bunny_0.1.yaml",
"examples/bunny/bunny.stl",
"examples/bunny/bunny_0.1.nc",
"examples/bunny/bunny_0.1_out.nc",
]
)
if __name__ == "__main__":
unittest.main()