Skip to content

Commit

Permalink
test: changed envelope to encompass 4 different parts of the geo grid
Browse files Browse the repository at this point in the history
The envelope was previously assigned wrong max x and y values, which
resulted in errors as the coveringGeohash function didn't return
the expected amount of geo hashes.
  • Loading branch information
LinusWallin committed Mar 3, 2024
1 parent 69ca9c0 commit 1287b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/com/esri/core/geometry/TestGeohash.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void testCoveringGeohashThreeGeohashes() {

@Test
public void testCoveringGeohashFourGeohashes() {
Envelope2D env = new Envelope2D(-180, -90, -140, -40);
Envelope2D env = new Envelope2D(-180, -90, -130, -40);
String [] coverage = Geohash.coveringGeohash(env);
assertEquals("0", coverage[0]);
assertEquals("2", coverage[1]);
Expand Down

0 comments on commit 1287b2c

Please sign in to comment.