Skip to content

Commit 71cc8f7

Browse files
committed
fix julia v0.7 syntax error in tests
syntax: invalid escape sequence
1 parent 5011656 commit 71cc8f7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

test/test_geos_functions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ facts("GEOS functions") do
391391
LibGEOS.destroyGeom(geom3_)
392392

393393
geom1_ = LibGEOS.geomFromWKT(
394-
"""POLYGON(( \
395-
56.528666666700 25.2101666667, \
396-
56.529000000000 25.2105000000, \
397-
56.528833333300 25.2103333333, \
394+
"""POLYGON((
395+
56.528666666700 25.2101666667,
396+
56.529000000000 25.2105000000,
397+
56.528833333300 25.2103333333,
398398
56.528666666700 25.2101666667))""")
399399
geom2_ = LibGEOS.pointOnSurface(geom1_)
400400
@fact LibGEOS.getCoordinates(LibGEOS.getCoordSeq(geom2_))[1] --> roughly([56.528917,25.210417], 1e-5)

test/test_geos_operations.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ facts("GEOS operations") do
165165
test_pointonsurface("LINESTRING(0 0, 0 0)", "POINT (0 0)")
166166

167167
g1 = parseWKT(
168-
"""POLYGON(( \
169-
56.528666666700 25.2101666667, \
170-
56.529000000000 25.2105000000, \
171-
56.528833333300 25.2103333333, \
168+
"""POLYGON((
169+
56.528666666700 25.2101666667,
170+
56.529000000000 25.2105000000,
171+
56.528833333300 25.2103333333,
172172
56.528666666700 25.2101666667))""")
173173
@fact GeoInterface.coordinates(pointOnSurface(g1)) --> roughly([56.528917,25.210417], 1e-5)
174174

@@ -184,10 +184,10 @@ facts("GEOS operations") do
184184
g2 = simplify(g1, 43.2)
185185
@fact isEmpty(g2) --> true
186186
g1 = parseWKT(
187-
"""POLYGON(( \
188-
56.528666666700 25.2101666667, \
189-
56.529000000000 25.2105000000, \
190-
56.528833333300 25.2103333333, \
187+
"""POLYGON((
188+
56.528666666700 25.2101666667,
189+
56.529000000000 25.2105000000,
190+
56.528833333300 25.2103333333,
191191
56.528666666700 25.2101666667))""")
192192
equivalent_to_wkt(simplify(g1, 0.0), "POLYGON EMPTY")
193193
@fact equals(g1, topologyPreserveSimplify(g1, 43.2)) --> true

0 commit comments

Comments
 (0)