Skip to content

Commit

Permalink
Merge pull request #68 from hmdsefi/dev
Browse files Browse the repository at this point in the history
fix floyd tests
  • Loading branch information
hmdsefi authored Feb 15, 2024
2 parents 6853acc + c84257f commit 236d435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions path/floyd_warshall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestFloydWarshall_NotWeighted(t *testing.T) {
_, _ = g.AddEdge(vA, vB, gograph.WithEdgeWeight(5))
_, _ = g.AddEdge(vB, vC, gograph.WithEdgeWeight(1))

_, err := BellmanFord(g, vA.Label())
_, err := FloydWarshall(g)
if err == nil {
t.Errorf("Expected error, but got nil")
}
Expand All @@ -87,7 +87,7 @@ func TestFloydWarshall_NotDirected(t *testing.T) {
_, _ = g.AddEdge(vA, vB, gograph.WithEdgeWeight(5))
_, _ = g.AddEdge(vB, vC, gograph.WithEdgeWeight(1))

_, err := BellmanFord(g, vA.Label())
_, err := FloydWarshall(g)
if err == nil {
t.Errorf("Expected error, but got nil")
}
Expand Down

0 comments on commit 236d435

Please sign in to comment.