Files
gonum/graph/path/internal/testgraphs/shortest_test.go
2020-03-16 16:10:59 +02:00

17 lines
456 B
Go

// Copyright ©2020 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package testgraphs
import "testing"
func TestVerifyShortestPathTests(t *testing.T) {
t.Parallel()
for _, test := range ShortestPathTests {
if len(test.WantPaths) != 1 && test.HasUniquePath {
t.Fatalf("%q: bad shortest path test: non-unique paths marked unique", test.Name)
}
}
}