Update breadth_first_search.py (#374)

This commit is contained in:
yashvarshney003
2020-08-15 08:24:36 +05:30
committed by GitHub
parent 6d29bcd97d
commit 750e8a185e
7 changed files with 85 additions and 17 deletions

View File

@@ -0,0 +1,26 @@
from unittest import TestCase
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../PathPlanning/BreadthFirstSearch/")
try:
import breadth_first_search as m
except ImportError:
raise
print(__file__)
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main()
if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()

View File

@@ -0,0 +1,26 @@
from unittest import TestCase
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../PathPlanning/DepthFirstSearch/")
try:
import depth_first_search as m
except ImportError:
raise
print(__file__)
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main()
if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()

View File

@@ -1,6 +1,15 @@
from unittest import TestCase
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../PathPlanning/Dijkstra/")
try:
import dijkstra as m
except ImportError:
raise
from PathPlanning.Dijkstra import dijkstra as m
print(__file__)
@@ -10,3 +19,8 @@ class Test(TestCase):
def test1(self):
m.show_animation = False
m.main()
if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()