Skip to content

Commit 816ae50

Browse files
committed
qualify usage of contains
to distinguish from `Base.contains`
1 parent 4ec4118 commit 816ae50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/test_geos_operations.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ end
3939

4040
g1 = parseWKT("POLYGON EMPTY")
4141
g2 = parseWKT("POLYGON EMPTY")
42-
@fact contains(g1, g2) --> false
43-
@fact contains(g1, g2) --> false
42+
@fact LibGEOS.contains(g1, g2) --> false
43+
@fact LibGEOS.contains(g1, g2) --> false
4444

4545
g1 = parseWKT("POLYGON((1 1,1 5,5 5,5 1,1 1))")
4646
g2 = parseWKT("POINT(2 2)")
47-
@fact contains(g1, g2) --> true
48-
@fact contains(g2, g1) --> false
47+
@fact LibGEOS.contains(g1, g2) --> true
48+
@fact LibGEOS.contains(g2, g1) --> false
4949

5050
g1 = parseWKT("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)))")
5151
g2 = parseWKT("POLYGON((1 1,1 2,2 2,2 1,1 1))")
52-
@fact contains(g1, g2) --> true
53-
@fact contains(g1, g2) --> false
52+
@fact LibGEOS.contains(g1, g2) --> true
53+
@fact LibGEOS.contains(g1, g2) --> false
5454

5555
# GEOSConvexHullTest
5656
input = parseWKT("MULTIPOINT (130 240, 130 240, 130 240, 570 240, 570 240, 570 240, 650 240)")
@@ -197,7 +197,7 @@ equivalent_to_wkt(simplify(g1, 0.0), "POLYGON EMPTY")
197197
function test_snap(g1::ASCIIString, g2::ASCIIString, expected::ASCIIString, tol::Float64=0.0)
198198
equivalent_to_wkt(snap(parseWKT(g1), parseWKT(g2), tol), expected)
199199
end
200-
test_snap("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))", "POINT(0.5 0)",
200+
test_snap("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))", "POINT(0.5 0)",
201201
"POLYGON ((0.5 0, 10 0, 10 10, 0 10, 0.5 0))", 1.0)
202202
test_snap("LINESTRING (-30 -20, 50 60, 50 0)", "LINESTRING (-29 -20, 40 60, 51 0)",
203203
"LINESTRING (-29 -20, 50 60, 51 0)", 2.0)

0 commit comments

Comments
 (0)