We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61997ca commit 07e7324Copy full SHA for 07e7324
3 files changed
tests/test_dfs.py
tests/test_main.py
@@ -0,0 +1 @@
1
+import os
tests/test_search.py
@@ -0,0 +1,20 @@
+from jupyddl.automated_planner import AutomatedPlanner
2
+from jupyddl.dijkstra import DijkstraBestFirstSearch
3
+from jupyddl.a_star import AStarBestFirstSearch
4
+from jupyddl.bfs import BreadthFirstSearch
5
+from jupyddl.dfs import DepthFirstSearch
6
+from os import path
7
+import coloredlogs
8
+import sys
9
+
10
+def test_searchDFS():
11
+ apla = AutomatedPlanner("data/domain.pddl", "data/problem.pddl")
12
+ dfs = DepthFirstSearch(apla)
13
+ _,ct = dfs.search()
14
+ assert ct != 0
15
16
+def test_searchBFS():
17
18
+ bfs = BreadthFirstSearch(apla)
19
+ _,ct = bfs.search()
20
0 commit comments