mirror of
https://github.com/gonum/gonum.git
synced 2025-10-18 05:00:43 +08:00
graph: use int64 for node retrieval
This commit is contained in:
@@ -249,7 +249,7 @@ func TestGrid(t *testing.T) {
|
||||
}
|
||||
for _, test := range reach {
|
||||
g.AllowDiagonal = test.diagonal
|
||||
got := g.From(test.from)
|
||||
got := g.From(test.from.ID())
|
||||
if !reflect.DeepEqual(got, test.to) {
|
||||
t.Fatalf("unexpected nodes from %d with allow diagonal=%t:\ngot: %v\nwant:%v",
|
||||
test.from, test.diagonal, got, test.to)
|
||||
|
Reference in New Issue
Block a user