Skip to content

Commit 9a03d60

Browse files
Added Doctest Mode
1 parent 86895b2 commit 9a03d60

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

searches/astar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def neighbors(node: Node) -> Iterable[tuple[Node, float]]:
131131

132132
if __name__ == "__main__":
133133
# Example usage / manual test
134+
import doctest
135+
doctest.testmod()
134136
start: Node = (0, 0)
135137
goal: Node = (5, 5)
136138
path = astar(start, goal, neighbors, heuristic)

0 commit comments

Comments
 (0)