Changeset 13659 in josm for trunk/test


Ignore:
Timestamp:
2018-04-22T20:47:27+02:00 (7 years ago)
Author:
Don-vip
Message:

see #16129 - increase error threshold with java 9/10/11

File:
1 edited

Legend:

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

    r12130 r13659  
    213213    private static boolean equalsDoubleMaxUlp(double d1, double d2) {
    214214        // Due to error accumulation in projection computation, the difference can reach hundreds of ULPs
    215         // The worst error is 816 ULP (followed by 512 ULP then 400 ULP) with:
    216         // WGS 72BE / UTM zone 12N (EPSG:32412): Projecting latlon(-19.603789209544317,-115.55033658613439):
    217         // expected: eastnorth(22416.160243623483,-2174011.280696576),
    218         // but got:  eastnorth(22416.16024362645,-2174011.280696576)!
    219         return Math.abs(d1 - d2) <= 850 * Math.ulp(d1);
     215        // The worst error is 1168 ULP (followed by 816 ULP then 512 ULP) with:
     216        // NAD83 / Colorado South (EPSG:26955): Projecting latlon(32.24604527892822,-125.93039495227096):
     217        // expected: eastnorth(-1004398.8994415681,24167.8944844745),
     218        // but got:  eastnorth(-1004398.8994415683,24167.894484478747)!
     219        return Math.abs(d1 - d2) <= 1200 * Math.ulp(d1);
    220220    }
    221221
Note: See TracChangeset for help on using the changeset viewer.