Skip to content

Commit 1b4d3d7

Browse files
authored
cell_index_test.go: Replace cellIDFromString with CellIDFromString
1 parent 91f0341 commit 1b4d3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s2/cell_index_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func TestCellIndexIntersectionOptimization(t *testing.T) {
362362
for _, test := range tests {
363363
index := &CellIndex{}
364364
for _, v := range test.have {
365-
index.Add(cellIDFromString(v.cellID), v.label)
365+
index.Add(CellIDFromString(v.cellID), v.label)
366366
}
367367
index.Build()
368368
checkIntersection(t, test.label, makeCellUnion("1/010", "1/3"), index)
@@ -387,7 +387,7 @@ func TestCellIndexIntersectionRandomCellUnions(t *testing.T) {
387387
func TestCellIndexIntersectionSemiRandomCellUnions(t *testing.T) {
388388
for i := 0; i < 200; i++ {
389389
index := &CellIndex{}
390-
id := cellIDFromString("1/0123012301230123")
390+
id := CellIDFromString("1/0123012301230123")
391391
var target CellUnion
392392
for j := 0; j < 100; j++ {
393393
switch {

0 commit comments

Comments
 (0)