Skip to content

Commit b536d40

Browse files
guilyxactions-user
authored andcommitted
Apply formatting changes
1 parent 9383ef3 commit b536d40

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

tests/test_search.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,37 @@
1010

1111

1212
def test_searchDFS():
13-
apla = AutomatedPlanner("pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl")
13+
apla = AutomatedPlanner(
14+
"pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl"
15+
)
1416
dfs = DepthFirstSearch(apla)
1517
res = dfs.search()
1618
assert res[1] != 0 # Path, computation time, opened nodes
1719

1820

1921
def test_searchBFS():
20-
apla = AutomatedPlanner("pddl-examples/flip/domain.pddl", "pddl-examples/flip/problem.pddl")
22+
apla = AutomatedPlanner(
23+
"pddl-examples/flip/domain.pddl", "pddl-examples/flip/problem.pddl"
24+
)
2125
bfs = BreadthFirstSearch(apla)
2226
res = bfs.search() # Path, computation time, opened nodes
2327
assert res[1] != 0
2428

2529

2630
def test_searchDijkstra():
27-
apla = AutomatedPlanner("pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl")
31+
apla = AutomatedPlanner(
32+
"pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl"
33+
)
2834
dijk = DijkstraBestFirstSearch(apla)
2935
res = dijk.search() # Goal, computation_time, opened_nodes(in this order)
3036
assert res[1] != 0 # Assert that it took some time to compute
3137
assert res[-1] > 0 # Assert that it visited some nodes
3238

3339

3440
def test_searchAStar():
35-
apla = AutomatedPlanner("pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl")
41+
apla = AutomatedPlanner(
42+
"pddl-examples/dinner/domain.pddl", "pddl-examples/dinner/problem.pddl"
43+
)
3644
astar = AStarBestFirstSearch(apla, apla.available_heuristics["goal_count"])
3745
res = astar.search() # Goal, computation_time, opened_nodes(in this order)
3846
assert res[1] != 0 # Assert that it took time to compute

0 commit comments

Comments
 (0)