mirror of
https://github.com/gonum/gonum.git
synced 2025-10-18 21:15:23 +08:00
Added test for no path condition
This commit is contained in:
@@ -154,4 +154,18 @@ func TestFWConfoundingPath(t *testing.T) {
|
||||
t.Error("Wrong path found for all paths %v", path)
|
||||
}
|
||||
}
|
||||
|
||||
path, _, err = sPath(concrete.GonumNode(4), concrete.GonumNode(5))
|
||||
if err != nil {
|
||||
t.Log("Success!", err)
|
||||
} else {
|
||||
t.Error("Path was found by FW single path where one shouldn't be %v", path)
|
||||
}
|
||||
|
||||
paths, _, err = aPaths(concrete.GonumNode(4), concrete.GonumNode(5))
|
||||
if err != nil {
|
||||
t.Log("Success!", err)
|
||||
} else {
|
||||
t.Error("Path was found by FW multi-path where one shouldn't be %v", paths)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user