Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Oct 13, 2023
1 parent b74f688 commit 709aee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private GeoTileUtils() {}
private static final int MAX_TILES_FULL_PRECISION = 1 << 20;

// lucene latitude resolution
private static final double LUCENE_LAT_RES = 180.0D / (0x1L << 32);
static final double LUCENE_LAT_RES = 180.0D / (0x1L << 32);

/**
* Largest number of tiles (precision) to use.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void testPointToTile() {
assertThat(GeoTileUtils.getYTile(rectangle.getMinY(), tiles), anyOf(equalTo(yTile + 1), equalTo(yTile)));
// check point inside
double x = randomDoubleBetween(rectangle.getMinX(), rectangle.getMaxX(), false);
double y = randomDoubleBetween(rectangle.getMinY(), rectangle.getMaxY(), false);
double y = randomDoubleBetween(rectangle.getMinY() + GeoTileUtils.LUCENE_LAT_RES, rectangle.getMaxY(), false);
assertThat(GeoTileUtils.getXTile(x, tiles), equalTo(xTile));
assertThat(GeoTileUtils.getYTile(y, tiles), equalTo(yTile));

Expand Down

0 comments on commit 709aee1

Please sign in to comment.