1 package rigeo 2 3 import ( 4 "testing" 5 ) 6 7 func TestS2CellFromCoordinates(t *testing.T) { 8 actualCell := S2CellFromCoordinates(26.568629, -80.108965) 9 expectedCellId := uint64(9860956140720671831) 10 11 if uint64(actualCell) != expectedCellId { 12 t.Fatalf("Cell-ID not correct: (%d) != (%d)", uint64(actualCell), expectedCellId) 13 } 14 } 15