There was an error while loading. Please reload this page.
1 parent e7e2971 commit 2eeb150Copy full SHA for 2eeb150
1 file changed
graphs/travelling_salesman_problem.py
@@ -40,7 +40,7 @@ def validate_graph(graph_points: dict[str, list[float]]) -> None:
40
:raises InvalidGraphError: If the graph points are not valid
41
42
>>> validate_graph({"A": [10, 20], "B": [30, 21], "C": [15, 35]}) # Valid graph
43
- >>> validate_graph({"A": [10, 20], "B": [30, "invalid"], "C": [15, 35]})
+ >>> validate_graph({"A": [10, 20], "B": [30, "invalid"], "C": [15, 35]}). # doctest: +IGNORE_EXCEPTION_DETAIL
44
Traceback (most recent call last):
45
...
46
InvalidGraphError: Each node must have a valid 2D coordinate [x, y]
0 commit comments