Skip to content

Commit

Permalink
fix Example to work as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed Oct 9, 2014
1 parent a32d2c0 commit 56adf40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ func TestContourContains(t *T) {
}
}

// [{1 1} {1 2} {2 1}]
func ExamplePolygon_Construct() {
subject := Polygon{{{1, 1}, {1, 2}, {2, 2}, {2, 1}}} // small square
clipping := Polygon{{{0, 0}, {0, 3}, {3, 0}}} // overlapping triangle
Expand All @@ -152,4 +151,5 @@ func ExamplePolygon_Construct() {
}
sort.Strings(out)
fmt.Println(out)
// Output: [{1 1} {1 2} {2 1}]
}

0 comments on commit 56adf40

Please sign in to comment.