Changeset 13602 in josm for trunk/test


Ignore:
Timestamp:
2018-04-07T20:42:34+02:00 (16 months ago)
Author:
Don-vip
Message:

see #16129 - projections rework for new ESRI file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/CustomProjectionTest.java

    r11931 r13602  
    6161        assertEquals(1.1 + 3 / 60.0 + 5.2 / 3600.0, CustomProjection.parseAngle("1.1d3'5.2\"", "xxx"), 1e-10);
    6262
     63        assertEquals(1.1, CustomProjection.parseAngle("1.1dN", "xxx"), 1e-10);
     64        assertEquals(-1.1, CustomProjection.parseAngle("1.1dS", "xxx"), 1e-10);
     65        assertEquals(1.1, CustomProjection.parseAngle("1.1dE", "xxx"), 1e-10);
     66        assertEquals(-1.1, CustomProjection.parseAngle("1.1dW", "xxx"), 1e-10);
     67
     68        assertEquals(49.5, CustomProjection.parseAngle("49d30'N", "xxx"), 1e-10);
     69        assertEquals(-120.8333333333, CustomProjection.parseAngle("120.0d50'W", "xxx"), 1e-10);
     70
    6371        // fail
    6472        Stream.of("", "-", "-N", "N", "1.1 ", "x", "1.1d1.1d", "1.1e", "1.1.1", ".1", "1.1d3\"5.2'").forEach(
Note: See TracChangeset for help on using the changeset viewer.