Files
PythonRobotics/tests/test_a_star_searching_two_side.py
weicent 43ab313762 New A star algorithm pr (#391)
* a star pr

* a star pr

* a star pr

* fix line excede 79 error

* fix pycodestyle errors, missing a whitespace

* add test file

* add test file

* rerun CI

* rerun CI

* rerun CI

* rerun CI

* rerun CI

* modified test file and rerun CI

* rerun CI

* fix CI error

* modified code resubmit pr

* fixed some minor error

* modified pr as suggested
2020-09-20 12:40:32 +09:00

28 lines
507 B
Python

from unittest import TestCase
import os
import sys
sys.path.append(os.path.dirname(__file__) + '/../')
try:
from PathPlanning.AStar import A_Star_searching_from_two_side as m
except ImportError:
raise
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main(800)
def test2(self):
m.show_animation = False
m.main(5000) # increase obstacle number, block path
if __name__ == '__main__':
test = Test()
test.test1()
test.test2()