(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestPolylineIntersectsCell(t *testing.T) { |
| 142 | pline := Polyline{ |
| 143 | Point{r3.Vector{X: 1, Y: -1.1, Z: 0.8}.Normalize()}, |
| 144 | Point{r3.Vector{X: 1, Y: -0.8, Z: 1.1}.Normalize()}, |
| 145 | } |
| 146 | |
| 147 | for face := range 6 { |
| 148 | cell := CellFromCellID(CellIDFromFace(face)) |
| 149 | if got, want := pline.IntersectsCell(cell), face&1 == 0; got != want { |
| 150 | t.Errorf("%v.IntersectsCell(%v) = %v, want %v", pline, cell, got, want) |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | func TestPolylineSubsample(t *testing.T) { |
| 156 | const polyStr = "0:0, 0:1, -1:2, 0:3, 0:4, 1:4, 2:4.5, 3:4, 3.5:4, 4:4" |
nothing calls this directly
no test coverage detected
searching dependent graphs…