Skip to content

Commit

Permalink
Add hack that prevents generation of small polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Oct 31, 2023
1 parent be1ee7a commit 5c062d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Graphics/Implicit/Test/Instances.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ instance Arbitrary SymbolicObj2 where
, square <$> arbitrary <*> arbitrary
, polygon <$> do
n <- choose (3, 10)
vectorOf n arbitrary
-- TODO(srk): this is a hack until #449 is solved
vectorOf n ((*100) <$> (V2 <$> arbitraryPos <*> arbitraryPos))
, pure fullSpace
, pure emptySpace
]
Expand Down

0 comments on commit 5c062d2

Please sign in to comment.