Skip to content

Commit 69a8a98

Browse files
authored
Merge pull request #117 from jmr/polyline-interp-test
TestPolylineInterpolate: Fix unused `want` var
2 parents f13cb10 + 65bb56d commit 69a8a98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

s2/polyline_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ func TestPolylineInterpolate(t *testing.T) {
526526
}
527527
line := Polyline(vertices)
528528

529-
want := vertices[0]
530529
point, next := line.Interpolate(-0.1)
531530
if point != vertices[0] {
532531
t.Errorf("%v.Interpolate(%v) = %v, want %v", line, -0.1, point, vertices[0])
@@ -535,7 +534,7 @@ func TestPolylineInterpolate(t *testing.T) {
535534
t.Errorf("%v.Interpolate(%v) = %v, want %v", line, -0.1, next, 1)
536535
}
537536

538-
want = PointFromCoords(1, math.Tan(0.2*math.Pi/2.0), 0)
537+
want := PointFromCoords(1, math.Tan(0.2*math.Pi/2.0), 0)
539538
if got, _ := line.Interpolate(0.1); !got.ApproxEqual(want) {
540539
t.Errorf("%v.Interpolate(%v) = %v, want %v", line, 0.1, got, want)
541540
}

0 commit comments

Comments
 (0)