Skip to content

Commit cab189c

Browse files
authored
Merge pull request golang#119 from jmr/cell-test
s2cell_test: Increase TestCellDistanceToEdge tolerance
2 parents ed1c8b9 + 911c8a2 commit cab189c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s2/cell_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ func TestCellDistanceToEdge(t *testing.T) {
666666
// Pi for vertex distance.
667667
expectedError := 1e-12
668668
if expectedMin.Radians() > math.Pi/2 {
669-
// Max error for ChordAngle as it approaches Pi is about 2e-8.
670-
expectedError = 2e-8
669+
// Max error for ChordAngle as it approaches Pi is about 3e-8.
670+
expectedError = 3e-8
671671
} else if expectedMin.Radians() <= math.Pi/3 {
672672
expectedError = 1e-15
673673
}

0 commit comments

Comments
 (0)