Skip to content

Commit 0c12435

Browse files
committed
Fix tests.
1 parent 29de7db commit 0c12435

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ instance Arbitrary ProjectConfigShared where
344344
<*> arbitrary <*> arbitrary
345345
<*> arbitrary <*> arbitrary
346346
<*> arbitrary <*> arbitrary
347+
<*> arbitrary
347348
where
348349
arbitraryConstraints :: Gen [(UserConstraint, ConstraintSource)]
349350
arbitraryConstraints =
@@ -352,18 +353,18 @@ instance Arbitrary ProjectConfigShared where
352353
shrink (ProjectConfigShared
353354
x00 x01 x02 x03 x04
354355
x05 x06 x07 x08 x09
355-
x10 x11 x12 x13) =
356+
x10 x11 x12 x13 x14) =
356357
[ ProjectConfigShared
357358
x00' (fmap getNonEmpty x01') (fmap getNonEmpty x02') x03' x04'
358359
x05' (postShrink_Constraints x06') x07' x08' x09'
359-
x10' x11' x12' x13'
360+
x10' x11' x12' x13' x14'
360361
| ((x00', x01', x02', x03', x04'),
361362
(x05', x06', x07', x08', x09'),
362-
(x10', x11', x12', x13'))
363+
(x10', x11', x12', x13', x14'))
363364
<- shrink
364365
((x00, fmap NonEmpty x01, fmap NonEmpty x02, x03, x04),
365366
(x05, preShrink_Constraints x06, x07, x08, x09),
366-
(x10, x11, x12, x13))
367+
(x10, x11, x12, x13, x14))
367368
]
368369
where
369370
preShrink_Constraints = map fst
@@ -579,6 +580,9 @@ instance Arbitrary PreSolver where
579580
instance Arbitrary ReorderGoals where
580581
arbitrary = ReorderGoals <$> arbitrary
581582

583+
instance Arbitrary CountConflicts where
584+
arbitrary = CountConflicts <$> arbitrary
585+
582586
instance Arbitrary StrongFlags where
583587
arbitrary = StrongFlags <$> arbitrary
584588

0 commit comments

Comments
 (0)