Skip to content

Commit

Permalink
Exclude empty Dependency from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Aug 20, 2018
1 parent be94cff commit 56a3c0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ instance Arbitrary PackageName where
packageChars = filter isAlphaNum ['\0'..'\127']

instance Arbitrary Dependency where
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> arbitrary
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> fmap getNonMEmpty arbitrary

instance Arbitrary UnqualComponentName where
-- same rules as package names
Expand Down

0 comments on commit 56a3c0d

Please sign in to comment.