graph/path: fix error messages
MODIFY
graph/path/a_star_test.go
graph/path/a_star_test.go
@@ -281,7 +281,7 @@ func TestAStarNullHeuristic(t *testing.T) {
p, weight := pt.To(test.Query.To().ID())
if weight != test.Weight {
- t.Errorf("%q: unexpected weight from Between: got:%f want:%f",
+ t.Errorf("%q: unexpected weight from To: got:%f want:%f",
test.Name, weight, test.Weight)
}
if weight := pt.WeightTo(test.Query.To().ID()); weight != test.Weight {

MODIFY
graph/path/bellman_ford_moore_test.go
graph/path/bellman_ford_moore_test.go
@@ -38,7 +38,7 @@ func TestBellmanFordFrom(t *testing.T) {
p, weight := pt.To(test.Query.To().ID())
if weight != test.Weight {
- t.Errorf("%q: unexpected weight from Between: got:%f want:%f",
+ t.Errorf("%q: unexpected weight from To: got:%f want:%f",
test.Name, weight, test.Weight)
}
if weight := pt.WeightTo(test.Query.To().ID()); weight != test.Weight {

MODIFY
graph/path/dijkstra_test.go
graph/path/dijkstra_test.go
@@ -59,7 +59,7 @@ func TestDijkstraFrom(t *testing.T) {
p, weight := pt.To(test.Query.To().ID())
if weight != test.Weight {
- t.Errorf("%q %s: unexpected weight from Between: got:%f want:%f",
+ t.Errorf("%q %s: unexpected weight from To: got:%f want:%f",
test.Name, tg.typ, weight, test.Weight)
}
if weight := pt.WeightTo(test.Query.To().ID()); weight != test.Weight {

graph/path: fix error messages