Skip to content

Commit

Permalink
test: updated tests to match the changes of the function in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusWallin committed Mar 3, 2024
1 parent bb45871 commit 2a8d131
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/test/java/com/esri/core/geometry/TestGeohash.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,29 +149,20 @@ public void testContainingGeohash2(){
public void testCoveringGeohashEmptyEnvelope() {
Envelope2D emptyEnv = new Envelope2D();
String [] coverage = Geohash.coveringGeohash(emptyEnv);
for (int i = 0; i < 4; i++){
assertEquals(null, coverage[i]);
}
}

@Test
public void testCoveringGeohashOneGeohash() {
Envelope2D env = new Envelope2D(-180, -90, -149, -49);
String [] coverage = Geohash.coveringGeohash(env);
assertEquals("0", coverage[0]);
for (int i = 1; i < 4; i++){
assertEquals(null, coverage[i]);
}
}

@Test
public void testCoveringGeohashPoint() {
Envelope2D env = new Envelope2D(180,90,180,90);
String [] coverage = Geohash.coveringGeohash(env);
assertEquals("zzzzzzzzzzzz", coverage[0]);
for (int i = 1; i < 4; i++){
assertEquals(null, coverage[i]);
}
assertEquals("zzzzzzzzzzzzzzzzzzzzzzzz", coverage[0]);
}

@Test
Expand All @@ -180,8 +171,6 @@ public void testCoveringGeohashTwoGeohashes() {
String [] coverage = Geohash.coveringGeohash(env);
assertEquals("0", coverage[0]);
assertEquals("2", coverage[1]);
assertEquals(null, coverage[2]);
assertEquals(null, coverage[3]);
}

@Test
Expand All @@ -191,7 +180,6 @@ public void testCoveringGeohashThreeGeohashes() {
assertEquals("0", coverage[0]);
assertEquals("2", coverage[1]);
assertEquals("8", coverage[2]);
assertEquals(null, coverage[3]);
}

@Test
Expand Down

0 comments on commit 2a8d131

Please sign in to comment.