Skip to content

Commit b57838f

Browse files
committed
Exclude empty Dependency from tests
1 parent 2a9f6ab commit b57838f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/tests/UnitTests/Distribution/Client/ArbitraryInstances.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ instance Arbitrary PackageName where
121121
packageChars = filter isAlphaNum ['\0'..'\127']
122122

123123
instance Arbitrary Dependency where
124-
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> arbitrary
124+
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> fmap getNonMEmpty arbitrary
125125

126126
instance Arbitrary UnqualComponentName where
127127
-- same rules as package names

0 commit comments

Comments
 (0)