File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111apla = AutomatedPlanner ("data/domain.pddl" , "data/problem.pddl" )
1212
13+
1314def test_searchDFS ():
1415 dfs = DepthFirstSearch (apla )
1516 _ , ct = dfs .search ()
@@ -21,14 +22,16 @@ def test_searchBFS():
2122 _ , ct = bfs .search ()
2223 assert ct != 0
2324
25+
2426def test_searchDijkstra ():
2527 dijk = DijkstraBestFirstSearch (apla )
26- res = dijk .search () # None, computation_time, opened_nodes(in this order)
27- assert (res [1 ] != 0 )
28- assert (res [- 1 ] >= 1 )
28+ res = dijk .search () # None, computation_time, opened_nodes(in this order)
29+ assert res [1 ] != 0
30+ assert res [- 1 ] >= 1
31+
2932
3033def test_searchAStar ():
3134 astar = AStarBestFirstSearch (apla , goal_count_heuristic )
32- res = astar .search () # None, computation_time, opened_nodes(in this order)
33- assert ( res [1 ] != 0 )
34- assert ( res [- 1 ] >= 1 )
35+ res = astar .search () # None, computation_time, opened_nodes(in this order)
36+ assert res [1 ] != 0
37+ assert res [- 1 ] >= 1
You can’t perform that action at this time.
0 commit comments