ensure simple invalid inputs to wkb do not crash - closes #1333
This commit is contained in:
parent
2680f941eb
commit
cc8f86e873
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ wkbs = [
|
|||
[ 1, "GEOMETRYCOLLECTION(POINT EMPTY,MULTIPOINT(0 0))", '010700000002000000010400000000000000010400000001000000010100000000000000000000000000000000000000'],
|
||||
[ 0, "LINESTRING EMPTY", '010200000000000000' ],
|
||||
[ 1, "Point(0 0)", '010100000000000000000000000000000000000000' ],
|
||||
# a few bogus inputs
|
||||
[ 0, "", '' ],
|
||||
[ 0, "00", '01' ],
|
||||
[ 0, "0000", '0104' ],
|
||||
]
|
||||
|
||||
def test_wkb_parsing():
|
||||
|
|
Loading…
Reference in a new issue