graph/path: fix error messages

This commit is contained in:
Dan Kortschak
2020-07-02 14:16:08 +09:30
parent 18a9c3eabc
commit 8d4cfcdeb8
3 changed files with 3 additions and 3 deletions

View File

@@ -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 {