mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
Test code clean up (#456)
* Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up * Test code clean up
This commit is contained in:
@@ -1,28 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
import conftest
|
||||
from PathPlanning.ClosedLoopRRTStar import closed_loop_rrt_star_car as m
|
||||
import random
|
||||
from unittest import TestCase
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
|
||||
"/../PathPlanning/ClosedLoopRRTStar/")
|
||||
try:
|
||||
from PathPlanning.ClosedLoopRRTStar import closed_loop_rrt_star_car as m
|
||||
except ImportError:
|
||||
raise
|
||||
|
||||
random.seed(12345)
|
||||
|
||||
print(__file__)
|
||||
|
||||
|
||||
class Test(TestCase):
|
||||
|
||||
def test1(self):
|
||||
m.show_animation = False
|
||||
m.main(gx=1.0, gy=0.0, gyaw=0.0, max_iter=5)
|
||||
def test_1():
|
||||
random.seed(12345)
|
||||
m.show_animation = False
|
||||
m.main(gx=1.0, gy=0.0, gyaw=0.0, max_iter=5)
|
||||
|
||||
|
||||
if __name__ == '__main__': # pragma: no cover
|
||||
test = Test()
|
||||
test.test1()
|
||||
if __name__ == '__main__':
|
||||
conftest.run_this_test(__file__)
|
||||
|
||||
Reference in New Issue
Block a user