1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Construct arbitrary closed lines.

This commit is contained in:
Rob Rix 2016-03-10 15:38:19 -05:00
parent 10d27cf4e8
commit 1812bd6415

View File

@ -29,7 +29,7 @@ instance Arbitrary a => Arbitrary (Both a) where
arbitrary = pure (curry Both) <*> arbitrary <*> arbitrary
instance Arbitrary a => Arbitrary (Line a) where
arbitrary = Line <$> arbitrary
arbitrary = oneof [ Line <$> arbitrary, Closed <$> arbitrary ]
instance Arbitrary a => Arbitrary (Patch a) where
arbitrary = oneof [