Skip to content

Commit

Permalink
reduce test threshold to get MacOS working
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19182 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Aug 12, 2024
1 parent 1b02aa3 commit 0924d1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ private static boolean equalsDoubleMaxUlp(double d1, double d2) {
// NAD83 / Colorado South (EPSG:26955): Projecting latlon(32.24604527892822,-125.93039495227096):
// expected: eastnorth(-1004398.8994415681,24167.8944844745),
// but got: eastnorth(-1004398.8994415683,24167.894484478747)!
return Math.abs(d1 - d2) <= 1200 * Math.ulp(d1);
// MacOS has higher errors, otherwise 1200 would be enough
return Math.abs(d1 - d2) <= 1700 * Math.ulp(d1);
}

private static boolean equalsJava9(EastNorth en1, EastNorth en2) {
Expand Down

0 comments on commit 0924d1e

Please sign in to comment.