Skip to content

Commit

Permalink
Add some more basic area and length unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 16, 2015
1 parent 0151227 commit f7550b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testdata/area_data.csv
Expand Up @@ -11,3 +11,7 @@ GeometryCollection ()|0
Polygon ((60 180, 140 240, 140 240, 140 240, 200 180, 120 120, 60 180))|8400
Polygon ((60 180, 140 120, 100 180, 140 240, 60 180))|2400
Polygon ((60 180, 140 120, 100 180, 140 240, 140 240, 60 180))|2400
Polygon ((1 1,2 2,3 1,2 0,1 1))|2.0
Polygon ((0 0,0 7,4 2,2 0,0 0))|16.0
Polygon ((0 0,0 7,4 2,2 0,0 0), (1 1,2 1,2 2,1 2,1 1))|15.0
Polygon ((1872000 528000,1872000 192000,1536119 192000,1536000 528000,1200000 528000,1200000 863880,1536000 863880,1872000 863880,1872000 528000))|338587368000
2 changes: 2 additions & 0 deletions tests/testdata/length_data.csv
Expand Up @@ -9,3 +9,5 @@ MultiLineString ()|0
MultiPoint ()|0
GeometryCollection ()|0
LineString (0 0, 10 10, 20 0)|28.2842712
LineString (0 0,3 4)|5
LineString (0 0,3 4,4 3)|6.4142135624

0 comments on commit f7550b3

Please sign in to comment.