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