mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
optimized tests for speed up
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
from unittest import TestCase
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
|
||||
try:
|
||||
from SLAM.FastSLAM1 import fast_slam1 as m
|
||||
except:
|
||||
raise
|
||||
|
||||
from SLAM.FastSLAM1 import fast_slam1 as m
|
||||
|
||||
print(__file__)
|
||||
|
||||
@@ -9,4 +15,10 @@ class Test(TestCase):
|
||||
|
||||
def test1(self):
|
||||
m.show_animation = False
|
||||
m.SIM_TIME = 3.0
|
||||
m.main()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test = Test()
|
||||
test.test1()
|
||||
|
||||
Reference in New Issue
Block a user