- Timestamp:
- 2016-03-28T03:07:18+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r10061 r10065 135 135 next.en = new EastNorth(en.a, en.b); 136 136 next.ll2 = new LatLon(ll2.a, ll2.b); 137 if (TestUtils.getJavaVersion() >= 9) {138 next.ll = next.ll.getRoundedToOsmPrecision();139 next.en = getRoundedToOsmPrecision(en.a, en.b);140 next.ll2 = next.ll2.getRoundedToOsmPrecision();141 }142 137 143 138 result.add(next); … … 191 186 } 192 187 EastNorth en = proj.latlon2eastNorth(data.ll); 188 LatLon ll2 = proj.eastNorth2latlon(data.en); 193 189 if (TestUtils.getJavaVersion() >= 9) { 194 190 en = getRoundedToOsmPrecision(en.east(), en.north()); 191 ll2 = ll2.getRoundedToOsmPrecision(); 192 data.en = getRoundedToOsmPrecision(data.en.east(), data.en.north()); 193 data.ll2 = data.ll2.getRoundedToOsmPrecision(); 195 194 } 196 195 if (!en.equals(data.en)) { … … 201 200 fail.append(error); 202 201 } 203 LatLon ll2 = proj.eastNorth2latlon(data.en);204 if (TestUtils.getJavaVersion() >= 9) {205 ll2 = ll2.getRoundedToOsmPrecision();206 }207 202 if (!ll2.equals(data.ll2)) { 208 203 String error = String.format("%s (%s): Inverse projecting eastnorth(%s,%s):%n" +
Note:
See TracChangeset
for help on using the changeset viewer.