mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
Construct arbitrary closed lines.
This commit is contained in:
parent
10d27cf4e8
commit
1812bd6415
@ -29,7 +29,7 @@ instance Arbitrary a => Arbitrary (Both a) where
|
|||||||
arbitrary = pure (curry Both) <*> arbitrary <*> arbitrary
|
arbitrary = pure (curry Both) <*> arbitrary <*> arbitrary
|
||||||
|
|
||||||
instance Arbitrary a => Arbitrary (Line a) where
|
instance Arbitrary a => Arbitrary (Line a) where
|
||||||
arbitrary = Line <$> arbitrary
|
arbitrary = oneof [ Line <$> arbitrary, Closed <$> arbitrary ]
|
||||||
|
|
||||||
instance Arbitrary a => Arbitrary (Patch a) where
|
instance Arbitrary a => Arbitrary (Patch a) where
|
||||||
arbitrary = oneof [
|
arbitrary = oneof [
|
||||||
|
Loading…
Reference in New Issue
Block a user