Skip to content

Commit

Permalink
fixed the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Dec 22, 2024
1 parent a81fee0 commit 7905d3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hgeometry/test/Polygon/TriangulateSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ graphPolygons :: (Ord r, Num r, Point_ point 2 r)
graphPolygons gr = map (&vertices %~ view (core.asPoint)) $ gr^..interiorFacePolygons

buggyPolygon2 :: SimplePolygon (Point 2 R)
buggyPolygon2 = read "SimplePolygon [Point2 2589.22 470.87,Point2 2588.68 470.97,Point2 2587.88 471.15,Point2 2587.5 471.28,Point2 2586.96 471.57,Point2 2586.46 471.9,Point2 2586.4 472.02,Point2 2586.87 472.14,Point2 2587.24 472.17,Point2 2588.02 472.06,Point2 2588.79 471.9,Point2 2589.55 471.71,Point2 2590.7 471.38,Point2 2591.07 471.26,Point2 2591.17 471.12,Point2 2591.09 470.96,Point2 2590.87 470.84,Point2 2590.42 470.81,Point2 2589.98 470.8]"
buggyPolygon2 = fromJust . fromPoints $
read @[Point 2 R] "[Point2 2589.22 470.87,Point2 2588.68 470.97,Point2 2587.88 471.15,Point2 2587.5 471.28,Point2 2586.96 471.57,Point2 2586.46 471.9,Point2 2586.4 472.02,Point2 2586.87 472.14,Point2 2587.24 472.17,Point2 2588.02 472.06,Point2 2588.79 471.9,Point2 2589.55 471.71,Point2 2590.7 471.38,Point2 2591.07 471.26,Point2 2591.17 471.12,Point2 2591.09 470.96,Point2 2590.87 470.84,Point2 2590.42 470.81,Point2 2589.98 470.8]"

buggySimplified :: SimplePolygon (Point 2 R)
buggySimplified = fromJust . fromPoints $
Expand Down

0 comments on commit 7905d3d

Please sign in to comment.