We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e889b6 commit 82ffb89Copy full SHA for 82ffb89
1 file changed
tests/test_astar.py
@@ -33,8 +33,8 @@ def test_astar_goal():
33
)
34
heuristic = BasicHeuristic(apla, "basic/goal_count")
35
astar = AStarBestFirstSearch(apla, heuristic.compute)
36
- path, _, _ = astar.search()
37
- assert heuristic.compute(path[-1].state) == 0
+ lastnode, _, _ = astar.search()
+ assert lastnode and lastnode.parent
38
39
40
def test_astar_path_length():
0 commit comments