diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-02 23:04:37 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-02 23:04:37 +0200 |
| commit | c1f5b5105065d6cb9f4e547b6b79c83357f1d759 (patch) | |
| tree | 51577be193ca80b40e52345a2c1b8a5fb8aca9ce /src | |
| parent | 20e67e474e5708b4d3a22cdf5a3ceb71ba627120 (diff) | |
| download | PROJ-c1f5b5105065d6cb9f4e547b6b79c83357f1d759.tar.gz PROJ-c1f5b5105065d6cb9f4e547b6b79c83357f1d759.zip | |
gie: fix tolerance checking
When comparing expected result with got result, in the case the
distance computation returns NaN, gie incorrectly considered the
test to be OK.
Adapt / comment out a few broken tests revealed after that fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/apps/gie.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apps/gie.cpp b/src/apps/gie.cpp index 47211aa8..03dc1556 100644 --- a/src/apps/gie.cpp +++ b/src/apps/gie.cpp @@ -1005,7 +1005,8 @@ Tell GIE what to expect, when transforming the ACCEPTed input else d = proj_xyz_dist (co, ce); - if (d > T.tolerance) + // Test written like that to handle NaN + if (!(d <= T.tolerance)) return expect_message (d, args); succs++; |
