mirror of
https://github.com/gonum/gonum.git
synced 2025-10-20 05:54:41 +08:00
Changed Fatal to Error in TestSmallAStar -- it lets us see all paths that go wrong instead of just the first one
This commit is contained in:
@@ -131,7 +131,7 @@ func TestSmallAStar(t *testing.T) {
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
got := fmt.Sprintln(aPath, aCost)
|
got := fmt.Sprintln(aPath, aCost)
|
||||||
if got != exp {
|
if got != exp {
|
||||||
t.Fatal("expected", exp, "got", got)
|
t.Error("expected", exp, "got", got)
|
||||||
}
|
}
|
||||||
t.Log(aPath, work)
|
t.Log(aPath, work)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user