ensure simple invalid inputs to wkb do not crash - closes #1333

This commit is contained in:
Dane Springmeyer 2012-07-25 11:14:23 -07:00
parent 2680f941eb
commit cc8f86e873

View file

@ -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():