Skip to content

Commit 911c8a2

Browse files
committed
s2cell_test: Increase TestCellDistanceToEdge tolerance
This has already been done in C++. https://github.com/google/s2geometry/blob/58de4ea1e2f8a294e0c072c602c22232fd1433ad/src/s2/s2cell_test.cc#L656
1 parent 6188549 commit 911c8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s2/cell_test.go

Lines changed: 2 additions & 2 deletions
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)