Skip to content

Commit 07e7324

Browse files
committed
Workon Issue #20
1 parent 61997ca commit 07e7324

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

tests/test_dfs.py

Whitespace-only changes.

tests/test_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import os

tests/test_search.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
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+
apla = AutomatedPlanner("data/domain.pddl", "data/problem.pddl")
18+
bfs = BreadthFirstSearch(apla)
19+
_,ct = bfs.search()
20+
assert ct != 0

0 commit comments

Comments
 (0)