Skip to content

Raise AssertionError when coordinates parameter is invalid #4

@redfrexx

Description

@redfrexx

Raise AssertionError when coordinates parameter is invalid, e.g. when a list of strings is passed instead of coordinate tuples.

This should raise an AssertionError:

    coordinates = [("1", "1"), ("1", "2"), ("2", "2"), ("2", "1"), ("1", "1")]
    my_poly = MyPolygon(coordinates)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions