From 6197a3ce4d52ee06fd12b959440ba64cf5784586 Mon Sep 17 00:00:00 2001 From: DanielVandH Date: Fri, 11 Aug 2023 21:03:31 +1000 Subject: [PATCH] Fix broken tests --- test/voronoi/voronoi.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/voronoi/voronoi.jl b/test/voronoi/voronoi.jl index 448c83d20..599febffe 100644 --- a/test/voronoi/voronoi.jl +++ b/test/voronoi/voronoi.jl @@ -1058,8 +1058,8 @@ end @test collect.(new_points) ≈ collect.([ (-1.1363636363636365, 5.954545454545455) (-0.2999999999999998, 9.3) - (-0.5999999999999996, 11.100000000000001) - (-18.115384615384613, 3.4615384615384617) + (-2.3999999999999986, 21.900000000000006) + (-61.96153846153845, 7.846153846153847) (-10.807692307692307, 2.730769230769231) ]) @test new_vertices == [1, 2, 3, 4, 5] @@ -1073,8 +1073,8 @@ end @test new_vertices == [1, 2, 3, 4] new_vertices, new_points = DT.grow_polygon_outside_of_box(vorn, 6, bounding_box) @test collect.(new_points) ≈ collect.([ - (7.868421052631579, 0.39473684210526305) - (6.699999999999999, 8.299999999999999) + (23.34210526315789, -4.026315789473685) + (17.5, 15.499999999999995) (3.1, 5.9) (2.357142857142857, 2.9285714285714284) (2.710526315789474, 1.868421052631579) @@ -1085,14 +1085,14 @@ end (-0.7307692307692308, -0.8846153846153846) (-4.166666666666666, 0.8333333333333335) (-10.807692307692307, 2.730769230769231) - (-18.115384615384613, 3.4615384615384617) - (-0.26923076923076916, -4.115384615384615) + (-61.96153846153845, 7.846153846153847) + (1.1153846153846159, -13.807692307692308) ]) @test new_vertices == [1, 2, 3, 4, 5] new_vertices, new_points = DT.grow_polygon_outside_of_box(vorn, 8, bounding_box) @test collect.(new_points) ≈ collect.([ - (4.9, 7.1) - (-0.5999999999999996, 11.100000000000001) + (17.5, 15.499999999999995) + (-4.799999999999997, 36.30000000000001) (-0.2999999999999998, 9.3) (3.1, 5.9) ])