Changeset 13602 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2018-04-07T20:42:34+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/CustomProjectionTest.java
r11931 r13602 61 61 assertEquals(1.1 + 3 / 60.0 + 5.2 / 3600.0, CustomProjection.parseAngle("1.1d3'5.2\"", "xxx"), 1e-10); 62 62 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 63 71 // fail 64 72 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.