mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
* 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
28 lines
507 B
Python
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()
|