Skip to content

Commit

Permalink
try enabling test that crashed GEOS before
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Aug 21, 2018
1 parent 9d86c9c commit a38ca80
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/test_invalid_geometry.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
@testset "LibGEOS invalid geometry" begin
# LibGEOS shouldn't crash but error out
# on invalid geometry
# LibGEOS shouldn't crash but error out on invalid geometry

# Self intersecting polygon
# gives unkown function segfault on Travis Linux CI, see #44, revisit after #21
# polygon = LibGEOS._readgeom("POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))")
# @test !LibGEOS.isValid(polygon)
polygon = LibGEOS._readgeom("POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))")
@test !LibGEOS.isValid(polygon)

# Hole outside of base
# gives unkown function segfault on Travis Linux CI, see #44, revisit after #21
# polygon = LibGEOS._readgeom("POLYGON((0 0, 10 0, 10 10, 0 10, 0 0), (15 15, 15 20, 20 20, 20 15, 15 15))")
# @test !LibGEOS.isValid(polygon)

polygon = LibGEOS._readgeom("POLYGON((0 0, 10 0, 10 10, 0 10, 0 0),
(15 15, 15 20, 20 20, 20 15, 15 15))")
@test !LibGEOS.isValid(polygon)
end

0 comments on commit a38ca80

Please sign in to comment.