aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-11-27 04:03:07 +0100
committerGitHub <noreply@github.com>2017-11-27 04:03:07 +0100
commit1f48f4c333bfe135296d3be643ef4981dc401c38 (patch)
treefca354d0481f4d00bfa97ab5e2f3f546210dd307 /test
parentdf306f9800b1d6f7a1984877f090c1bc810da7a0 (diff)
downloadPROJ-1f48f4c333bfe135296d3be643ef4981dc401c38.tar.gz
PROJ-1f48f4c333bfe135296d3be643ef4981dc401c38.zip
gie support for builtin errcodes, and other improvements (#684)
* gie support for builtin errcodes, and other improvements * allow lower case error constants
Diffstat (limited to 'test')
-rw-r--r--test/gie/ellipsoid.gie23
1 files changed, 15 insertions, 8 deletions
diff --git a/test/gie/ellipsoid.gie b/test/gie/ellipsoid.gie
index 63901bc9..65101f6c 100644
--- a/test/gie/ellipsoid.gie
+++ b/test/gie/ellipsoid.gie
@@ -53,13 +53,20 @@ expect 1335833.8895192828 7326837.7148738774
Then try to fail deliberately
-------------------------------------------------------------------------------
operation proj=merc ellps=GRS80000000000
-expect failure
+expect failure errno unknown_ellp_param
operation proj=merc +a=-1
-expect failure
+expect failure errno major_axis_not_given
operation proj=merc +no_defs
-expect failure
-operation proj=merc +es=-1 +no_defs
-expect failure
+expect failure errno major_axis_not_given
+
+# This one should succeed due to ellps=WGS84 in proj_def.dat
+operation proj=merc
+accept 0 0
+expect 0 0
+
+operation proj=merc +es=-1
+expect failure errno major_axis_not_given
+
operation
expect failure
operation cobra
@@ -122,13 +129,13 @@ expect -1.56904 0
Shape parameters
-------------------------------------------------------------------------------
operation proj=utm zone=32 ellps=GRS80 rf=0
-expect failure
+expect failure errno rev_flattening_is_zero
operation proj=utm zone=32 ellps=GRS80 es=1
-expect failure
+expect failure errno eccentricity_is_one
operation proj=utm zone=32 ellps=GRS80 b=0
-expect failure
+expect failure errno eccentricity_is_one
operation proj=utm zone=32 ellps=GRS80 b=6000000
accept 12 55