Skip to content

Commit 61e0115

Browse files
authored
Added test in test_AdjacencyMatrix (#460)
1 parent 6a2caae commit 61e0115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydatastructs/graphs/tests/test_adjacency_matrix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_AdjacencyMatrix():
2626
assert neighbors == [v_1]
2727
g.remove_edge(0, 1)
2828
assert g.is_adjacent(0, 1) is False
29-
3029
assert raises(ValueError, lambda: g.add_edge('u', 'v'))
3130
assert raises(ValueError, lambda: g.add_edge('v', 'x'))
31+
assert raises(ValueError, lambda: g.add_edge(2, 3))
32+
assert raises(ValueError, lambda: g.add_edge(3, 2))

0 commit comments

Comments
 (0)