Skip to content

Commit

Permalink
refactor: removes indentation error caused by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusWallin committed Mar 3, 2024
1 parent a216691 commit 708542e
Showing 1 changed file with 27 additions and 29 deletions.
56 changes: 27 additions & 29 deletions src/test/java/com/esri/core/geometry/TestGeohash.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,41 +112,39 @@ public void testToGeoHash() {
assertEquals("gk6ru", p2Hash);
assertEquals("sqdnk", p3Hash);
}
@Test
public void testToGeohashHasGoodPrecision(){
Point2D point = new Point2D(18.068581, 59.329323);
assertEquals(6, Geohash.toGeohash(point, 6).length());
}
@Test
public void testToGeohashHasGoodPrecision(){
Point2D point = new Point2D(18.068581, 59.329323);
assertEquals(6, Geohash.toGeohash(point, 6).length());
}

@Test
public void testToGeohash2(){
String expected = "u6sce";
Point2D point = new Point2D(18.068581, 59.329323);
String geoHash = Geohash.toGeohash(point, 5);
@Test
public void testToGeohash2(){
String expected = "u6sce";
Point2D point = new Point2D(18.068581, 59.329323);
String geoHash = Geohash.toGeohash(point, 5);

assertEquals(expected, geoHash);
}
assertEquals(expected, geoHash);
}

@Test
public void testContainingGeohashWithHugeValues(){
Envelope2D envelope = new Envelope2D(-179, -89, 179, 89);
assertEquals("", Geohash.containingGeohash(envelope));
}
@Test
public void testContainingGeohashWithHugeValues(){
Envelope2D envelope = new Envelope2D(-179, -89, 179, 89);
assertEquals("", Geohash.containingGeohash(envelope));
}

@Test
public void testContainingGeohash(){
Envelope2D envelope = new Envelope2D(-179, -89, -140, -50);
assertEquals("0", Geohash.containingGeohash(envelope));
}
@Test
public void testContainingGeohash(){
Envelope2D envelope = new Envelope2D(-179, -89, -140, -50);
assertEquals("0", Geohash.containingGeohash(envelope));
}

@Test
public void testContainingGeohash2(){
Envelope2D envelope = new Envelope2D(18.078, 59.3564, 18.1,59.3344);
assertEquals("u6sce", Geohash.containingGeohash(envelope));
}
@Test
public void testContainingGeohash2(){
Envelope2D envelope = new Envelope2D(18.078, 59.3564, 18.1,59.3344);
assertEquals("u6sce", Geohash.containingGeohash(envelope));
}



@Test
public void testCoveringGeohashEmptyEnvelope() {
Envelope2D emptyEnv = new Envelope2D();
Expand Down

0 comments on commit 708542e

Please sign in to comment.