@@ -153,55 +153,3 @@ func testIndexCellDataCellAndCenterRecomputed(t *testing.T) {
153153}
154154
155155// TODO(rsned): Test shapeContains
156-
157- func TestIndexCellDataLoadStuff (t * testing.T ) {
158-
159- tests := []struct {
160- index string
161- }{
162- /*
163- {
164- // Basic polygon should be valid.
165- index: "## 1:0, 0:-1, -1:0, 0:1",
166- },
167- {
168- // Basic polyline should be valid.
169- index: "# 0:0, 1:0, 0:-1, -1:0, 0:1 #",
170- },
171- {
172- // Basic multipoint should be valid.
173- index: "0:0 | 1:0 | 0:-1 | -1:0 | 0:1 ##",
174- },
175- */
176- {
177- // Basic polygon with a hole should be valid.
178- index : "## 2:0, 0:-2, -2:0, 0:2; 0:1, -1:0, 0:-1, 1:0;" ,
179- },
180- {
181- // Polygon with improperly oriented hole should fail.
182- index : "## 2:0, 0:-2, -2:0, 0:2; 1:0, 0:-1, -1:0, 0:1;" ,
183- },
184- {
185- // constructed to avoid triggering the interior-on-the-right check.
186- index : "## 0:-6, -6:0, 0:6, 6:0 ; 0:0, 3:0, 6:0, 6:3, 6:6, 3:6, 0:6, 0:3" ,
187- },
188- /*
189- */
190- }
191-
192- for _ , test := range tests {
193- index := makeShapeIndex (test .index )
194- index .Build ()
195- // t.Errorf("%d. index: %q\n", i, test.index)
196- // t.Errorf("%d. cellmap: %+v\n", i, index.cellMap)
197- // t.Errorf("%d. cells: %+v\n", i, index.cells)
198- // t.Errorf("%d. shapes: %+v\n", i, index.shapes)
199-
200- iter := index .Iterator ()
201- celldata := newIndexCellData ()
202- celldata .loadCell (index , iter .CellID (), iter .IndexCell ())
203-
204- // t.Errorf("done %d", i)
205- }
206-
207- }
0 commit comments