Skip to content

Commit a74aed6

Browse files
committed
QC
1 parent 59b0e49 commit a74aed6

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ constraints:
9999

100100
-- https://github.com/IntersectMBO/plutus/pull/7236
101101
, setup.optparse-applicative >=0.19.0.0
102+
, QuickCheck < 2.18
102103

103104
allow-newer:
104105
, aeson-pretty:aeson

plutus-core/plutus-core/test/Generators/QuickCheck/Utils.hs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@ import PlutusCore.Data
99
import PlutusCore.Generators.QuickCheck.Builtin
1010
import PlutusCore.Generators.QuickCheck.Utils
1111

12-
#if MIN_VERSION_QuickCheck(2, 18, 0)
13-
import Test.QuickCheck (withNumTests)
14-
#else
15-
import Test.QuickCheck (
16-
Property,
17-
Testable,
18-
withMaxSuccess,
19-
)
20-
#endif
12+
import qualified Test.QuickCheck as QC
2113

2214
import Test.Tasty
2315
import Test.Tasty.QuickCheck
@@ -92,7 +84,9 @@ test_utils =
9284
, test_multiSplitDistribution
9385
]
9486

95-
#if !MIN_VERSION_QuickCheck(2, 18, 0)
96-
withNumTests :: Testable prop => Int -> prop -> Property
97-
withNumTests = withMaxSuccess
87+
withNumTests :: QC.Testable prop => Int -> prop -> QC.Property
88+
#if MIN_VERSION_QuickCheck(2, 18, 0)
89+
withNumTests = QC.withNumTests
90+
#else
91+
withNumTests = QC.withMaxSuccess
9892
#endif

0 commit comments

Comments
 (0)