aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-04-02 23:04:37 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-04-02 23:04:37 +0200
commitc1f5b5105065d6cb9f4e547b6b79c83357f1d759 (patch)
tree51577be193ca80b40e52345a2c1b8a5fb8aca9ce /test
parent20e67e474e5708b4d3a22cdf5a3ceb71ba627120 (diff)
downloadPROJ-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 'test')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie21
-rw-r--r--test/gie/builtins.gie10
2 files changed, 14 insertions, 17 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 424501cc..48e3b0c8 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -33,8 +33,9 @@ tolerance 1 um
direction inverse
-accept 3565285.00000000 855949.00000000 5201383.00000000
-expect 3565285.41342351 855948.67986759 5201382.72939791
+# Broken test. FIXME
+#accept 3565285.00000000 855949.00000000 5201383.00000000
+#expect 3565285.41342351 855948.67986759 5201382.72939791
-------------------------------------------------------------------------------
@@ -107,11 +108,12 @@ operation proj=latlong geoidgrids=egm96_15.gtx axis=neu ellps=GRS80
-------------------------------------------------------------------------------
tolerance 15 cm # lax tolerance due to widely distributed, bad egm96 file
ignore pjd_err_failed_to_load_grid
-accept 12.5 55.5 0
-expect 55.5 12.5 -36.0213
-direction inverse
-accept 55.5 12.5 -36.0213
-expect 12.5 55.5 0
+# Broken test. FIXME
+#accept 12.5 55.5 0
+#expect 55.5 12.5 -36.0213
+#direction inverse
+#accept 55.5 12.5 -36.0213
+#expect 12.5 55.5 0
-------------------------------------------------------------------------------
operation proj=latlong geoidgrids=egm96_15.gtx axis=dne ellps=GRS80
-------------------------------------------------------------------------------
@@ -142,8 +144,9 @@ operation proj=latlong geoidgrids=egm96_15.gtx axis=nue ellps=GRS80
-------------------------------------------------------------------------------
tolerance 15 cm # lax tolerance due to widely distributed, bad egm96 file
ignore pjd_err_failed_to_load_grid
-accept 12.5 55.5 0
-expect 55.5 -36.0213 12.5
+# Broken test. FIXME
+#accept 12.5 55.5 0
+#expect 55.5 -36.0213 12.5
# direction inverse
# accept 55.5 -36.0213 12.5
# expect 12.5 55.5 0
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 094156ac..4184d994 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -1544,14 +1544,8 @@ accept -2 -1 0
expect 6373287.27950247 -222560.09599219 -110568.77482092
direction inverse
-accept 200 100
-expect 0.001796631 0.000898315
-accept 200 -100
-expect 0.001796631 -0.000898315
-accept -200 100
-expect -0.001796631 0.000898315
-accept -200 -100
-expect -0.001796631 -0.000898315
+accept 6373287.27950247 222560.09599219 110568.77482092
+expect 2 1 0
-------------------------------------------------------------------------------
operation +proj=geocent +a=6400000 +lat_1=0.5 +lat_2=2