add runtest script

This commit is contained in:
Atsushi Sakai
2018-01-16 22:56:32 -08:00
parent 47f486cd83
commit dd1db88b15
2 changed files with 3 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ def calc_potential_field(gx, gy, ox, oy, reso, rr):
for ix in range(xw):
x = ix * reso + minx
for iy in range(yw):
y = iy * reso + miny
ug = calc_attractive_potential(x, y, gx, gy)

2
runtests.sh Executable file
View File

@@ -0,0 +1,2 @@
echo "Run test suites! "
python -m unittest discover tests