Files
PythonRobotics/tests/test_a_star_searching_two_side.py
Atsushi Sakai 2bf0dcedc9 fix unittest animation bugs (#429)
* fix unittest animation bugs

* exstract a function
2020-11-01 14:05:46 +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()