@Test
    public void testNearBoundary() {
        checkLat("N89.9999", 89.9999);
        checkLat("S89.9999", -89.9999);
        checkLon("E179.9999", 179.9999);
        checkLon("W179.9999", -179.9999);

        checkLat("N89.999999", 89.999999);
        checkLat("S89.999999", -89.999999);
        checkLon("E179.999999", 179.999999);
        checkLon("W179.999999", -179.999999);

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