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:
parent
10d27cf4e8
commit
1812bd6415
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user