(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestCapCellUnionBoundLevel1Radius(t *testing.T) { |
| 218 | // Check that a cap whose radius is approximately the width of a level 1 |
| 219 | // Cell can be covered by only 3 faces. |
| 220 | c := CapFromCenterAngle(PointFromCoords(1, 1, 1), s1.Angle(MinWidthMetric.Value(1))) |
| 221 | covering := c.CellUnionBound() |
| 222 | if len(covering) != 3 { |
| 223 | t.Errorf("a cap with radius of a level 1 cell should be covered by 3 faces, got %d", len(covering)) |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | func TestCapExpanded(t *testing.T) { |
| 228 | cap50 := CapFromCenterAngle(xAxisPt, 50.0*s1.Degree) |
nothing calls this directly
no test coverage detected
searching dependent graphs…