Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilyx committed Jan 1, 2021
1 parent 8e889b6 commit 82ffb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_astar.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_astar_goal():
)
heuristic = BasicHeuristic(apla, "basic/goal_count")
astar = AStarBestFirstSearch(apla, heuristic.compute)
path, _, _ = astar.search()
assert heuristic.compute(path[-1].state) == 0
lastnode, _, _ = astar.search()
assert lastnode and lastnode.parent


def test_astar_path_length():
Expand Down

0 comments on commit 82ffb89

Please sign in to comment.