Skip to content

Commit a017b49

Browse files
committed
Fix
1 parent 5686769 commit a017b49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphs/check_bipatrite.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def is_bipartite_dfs(graph: defaultdict[int, list[int]]) -> bool:
5252
...
5353
KeyError: 0
5454
55-
>>> # FIXME: This test should fails with TypeError: list indices must be integers or...
55+
>>> # FIXME: This test should fails with
56+
>>> # TypeError: list indices must be integers or...
5657
>>> is_bipartite_dfs({0: [1.0, 3.0], 1.0: [0, 2.0], 2.0: [1.0, 3.0], 3.0: [0, 2.0]})
5758
True
5859
>>> is_bipartite_dfs({"a": [1, 3], "b": [0, 2], "c": [1, 3], "d": [0, 2]})
@@ -142,7 +143,8 @@ def is_bipartite_bfs(graph: defaultdict[int, list[int]]) -> bool:
142143
...
143144
KeyError: 0
144145
145-
>>> # FIXME: This test should fails with TypeError: list indices must be integers or...
146+
>>> # FIXME: This test should fails with
147+
>>> # TypeError: list indices must be integers or...
146148
>>> is_bipartite_bfs({0: [1.0, 3.0], 1.0: [0, 2.0], 2.0: [1.0, 3.0], 3.0: [0, 2.0]})
147149
True
148150
>>> is_bipartite_bfs({"a": [1, 3], "b": [0, 2], "c": [1, 3], "d": [0, 2]})

0 commit comments

Comments
 (0)