forked from laszlowaty/astroConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
37 lines (23 loc) · 772 Bytes
/
tests.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
from algorithms.converts import asas, integral, nsvs, hipparcos, munipac
def test_asas_converting():
file = open("mats/asas.txt").read()
print(asas(file))
def test_integral_converting():
file = open("mats/integral.txt").read()
print(integral(file))
def test_nsvs_converting():
file = open("mats/nsvs.txt").read()
print(nsvs(file))
def test_hipparcos_converting():
file = open("mats/hipparcos.txt").read()
print(hipparcos(file))
def test_munipac_converting():
file = open("mats/munipack.txt").read()
print(munipac(file))
def converting_tests():
test_asas_converting()
test_nsvs_converting()
test_integral_converting()
test_hipparcos_converting()
if __name__ == "__main__":
test_munipac_converting()