Skip to content

Commit 82ffb89

Browse files
committed
update tests
1 parent 8e889b6 commit 82ffb89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_astar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def test_astar_goal():
3333
)
3434
heuristic = BasicHeuristic(apla, "basic/goal_count")
3535
astar = AStarBestFirstSearch(apla, heuristic.compute)
36-
path, _, _ = astar.search()
37-
assert heuristic.compute(path[-1].state) == 0
36+
lastnode, _, _ = astar.search()
37+
assert lastnode and lastnode.parent
3838

3939

4040
def test_astar_path_length():

0 commit comments

Comments
 (0)