@Test
    public void testNearBoundary() {
        parser = new DegreesParser("N89.9999;E179.9999");
        assertEquals(89.9999, parser.latitude, delta);
        assertEquals(179.9999, parser.longitude, delta);
        parser = new DegreesParser("S89.9999;W179.9999");
        assertEquals(-89.9999, parser.latitude, delta);
        assertEquals(-179.9999, parser.longitude, delta);

        parser = new DegreesParser("N89.999999;E179.999999");
        assertEquals(89.999999, parser.latitude, delta);
        assertEquals(179.999999, parser.longitude, delta);
        parser = new DegreesParser("S89.999999;W179.999999");
        assertEquals(-89.999999, parser.latitude, delta);
        assertEquals(-179.999999, parser.longitude, delta);

        parser = new DegreesParser("N89\u00B059'59;E179\u00B059'59");
        assertEquals(89+59/60d+59/3600d, parser.latitude, delta);
        assertEquals(179+59/60d+59/3600d, parser.longitude, delta);
        parser = new DegreesParser("S89\u00B059'59;W179\u00B059'59");
        assertEquals(-(89+59/60d+59/3600d), parser.latitude, delta);
        assertEquals(-(179+59/60d+59/3600d), parser.longitude, delta);
    }
Tests inputs that are close to latitude 90/-90 degrees and longitude 180/-180 degrees.
vespajlib/src/test/java/com/yahoo/geo/DegreesParserTestCase.java