mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
17 lines
456 B
Go
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)
|
|
}
|
|
}
|
|
}
|