summaryrefslogtreecommitdiff
path: root/tests/gis_tests/data/geometries.json
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2024-11-07 20:40:56 +0000
committernessita <124304+nessita@users.noreply.github.com>2025-07-21 22:23:29 -0300
commitef42718a2b5ca941931d49221928d88ce24206c9 (patch)
treee134f375dd3b52f85a42d18ec00ffd077f2348b8 /tests/gis_tests/data/geometries.json
parent896fa85b0217ebc3a13c6ea42688f160103d0962 (diff)
Used assertRaisesMessage and subTest where appropriate in GEOS tests.
Diffstat (limited to 'tests/gis_tests/data/geometries.json')
-rw-r--r--tests/gis_tests/data/geometries.json12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gis_tests/data/geometries.json b/tests/gis_tests/data/geometries.json
index eb6c64b6d9..6856ac793a 100644
--- a/tests/gis_tests/data/geometries.json
+++ b/tests/gis_tests/data/geometries.json
@@ -11,12 +11,12 @@
{"wkt": "MULTIPOLYGON (((180 60, 240 160, 300 60, 180 60)), ((80 80, 180 60, 160 140, 240 160, 360 140, 300 60, 420 100, 320 280, 120 260, 80 80)))", "valid": true, "num_geom": 2, "n_p": 14}
],
"errors": [
- {"wkt": "GEOMETR##!@#%#............a32515", "bad": true, "hex": false},
- {"wkt": "Foo.Bar", "bad": true, "hex": false},
- {"wkt": "POINT (5, 23)", "bad": true, "hex": false},
- {"wkt": "AAABBBDDDAAD##@#1113511111-098111111111111111533333333333333", "bad": true, "hex": true},
- {"wkt": "FFFFFFFFFFFFFFFFF1355555555555555555565111", "bad": true, "hex": true},
- {"wkt": "", "bad": true, "hex": false}
+ {"wkt": "GEOMETR##!@#%#............a32515", "bad": true, "hex": false, "msg": "String input unrecognized as WKT EWKT, and HEXEWKB."},
+ {"wkt": "Foo.Bar", "bad": true, "hex": false, "msg": "String input unrecognized as WKT EWKT, and HEXEWKB."},
+ {"wkt": "POINT (5, 23)", "bad": true, "hex": false, "msg": "Error encountered checking Geometry returned from GEOS C function \"GEOSWKTReader_read_r\"."},
+ {"wkt": "AAABBBDDDAAD##@#1113511111-098111111111111111533333333333333", "bad": true, "hex": true, "msg": "String input unrecognized as WKT EWKT, and HEXEWKB."},
+ {"wkt": "FFFFFFFFFFFFFFFFF1355555555555555555565111", "bad": true, "hex": true, "msg": "Error encountered checking Geometry returned from GEOS C function \"GEOSWKBReader_readHEX_r\"."},
+ {"wkt": "", "bad": true, "hex": false, "msg": "String input unrecognized as WKT EWKT, and HEXEWKB."}
],
"wkt_out": [
{"wkt": "POINT (110 130)", "ewkt": "POINT (110 130)", "kml": "<Point><coordinates>110.0,130.0,0</coordinates></Point>", "gml": "<gml:Point><gml:coordinates>110,130</gml:coordinates></gml:Point>"},