Skip to content

Commit e544dd0

Browse files
committed
fix tests
1 parent 5c248f0 commit e544dd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ end
285285
@test collect(GeometryBasics.consecutive_pairs(ps)) == collect(zip(ps[1:end-1], ps[2:end]))
286286

287287
ps = Point2f[(0,0), (1,0), (0,1), (1,2), (0,2), (1,1), (0,0)]
288-
idxs, ips = _self_intersections(ps)
288+
idxs, ips = GeometryBasics._self_intersections(ps)
289289
@test idxs == [(2, 6), (3, 5)]
290290
@test ips == [Point2f(0.5), Point2f(0.5, 1.5)]
291291
idxs2, ips2 = self_intersections(ps)
292292
@test ips2 == ips
293293
@test idxs2 == [2, 6, 3, 5]
294294

295295
ps = [Point2f(cos(x), sin(x)) for x in 0:4pi/5:4pi+0.1]
296-
idxs, ips = _self_intersections(ps)
296+
idxs, ips = GeometryBasics._self_intersections(ps)
297297
@test idxs == [(1, 3), (1, 4), (2, 4), (2, 5), (3, 5)]
298298
@test all(ips .≈ Point2f[(0.30901694, 0.2245140), (-0.118034005, 0.36327127), (-0.38196602, 0), (-0.118033946, -0.3632713), (0.309017, -0.22451389)])
299299
idxs2, ips2 = self_intersections(ps)
@@ -302,7 +302,7 @@ end
302302

303303
@test_throws ErrorException split_intersections(ps)
304304
ps = Point2f[(0,0), (1,0), (0,1), (1,1), (0, 0)]
305-
idxs, ips = _self_intersections(ps)
305+
idxs, ips = GeometryBasics._self_intersections(ps)
306306
sps = split_intersections(ps)
307307
@test sps[1] == [ps[3], ps[4], ips[1]]
308308
@test sps[2] == [ps[5], ps[1], ps[2], ips[1]]

0 commit comments

Comments
 (0)