@Test
    public void testOnBoundary() {
        parser = new DegreesParser("N90;E180");
        assertEquals(90d, parser.latitude, delta);
        assertEquals(180d, parser.longitude, delta);
        parser = new DegreesParser("S90;W180");
        assertEquals(-90d, parser.latitude, delta);
        assertEquals(-180d, parser.longitude, delta);

        parser = new DegreesParser("N90\u00B00'0;E180\u00B00'0");
        assertEquals(90d, parser.latitude, delta);
        assertEquals(180d, parser.longitude, delta);
        parser = new DegreesParser("S90\u00B00'0;W180\u00B00'0");
        assertEquals(-90d, parser.latitude, delta);
        assertEquals(-180d, parser.longitude, delta);
    }
Tests inputs that are on latitude 90/-90 degrees and longitude 180/-180 degrees.
vespajlib/src/test/java/com/yahoo/geo/DegreesParserTestCase.java