Changeset 4580 in josm for trunk/test/unit/org
- Timestamp:
- 2011-11-06T15:00:56+01:00 (13 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java
r4574 r4580 73 73 assertEquals(LatLon.roundToOsmPrecisionStrict(99.9999999), 99.9999999, 0); 74 74 } 75 76 @Test 77 public void toIntervalLonTests() { 78 assertEquals(-180.0, LatLon.toIntervalLon(-180.0), 0); 79 assertEquals(0.0, LatLon.toIntervalLon(0.0), 0); 80 assertEquals(180.0, LatLon.toIntervalLon(180.0), 0); 81 82 assertEquals(179.0, LatLon.toIntervalLon(-181.0), 0); 83 assertEquals(-179.0, LatLon.toIntervalLon(181.0), 0); 84 85 assertEquals(-1.0, LatLon.toIntervalLon(359.0), 0); 86 assertEquals(1.0, LatLon.toIntervalLon(-359.0), 0); 87 88 assertEquals(1.0, LatLon.toIntervalLon(361.0), 0); 89 assertEquals(-1.0, LatLon.toIntervalLon(-361.0), 0); 90 91 assertEquals(179.0, LatLon.toIntervalLon(539.0), 0); 92 assertEquals(-179.0, LatLon.toIntervalLon(-539.0), 0); 93 94 assertEquals(-179.0, LatLon.toIntervalLon(541.0), 0); 95 assertEquals(179.0, LatLon.toIntervalLon(-541.0), 0); 96 } 75 97 }
Note:
See TracChangeset
for help on using the changeset viewer.