File tree Expand file tree Collapse file tree
plutus-core/plutus-core/test/Generators/QuickCheck Expand file tree Collapse file tree Original file line number Diff line number Diff 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
103104allow-newer :
104105 , aeson-pretty :aeson
Original file line number Diff line number Diff line change @@ -9,15 +9,7 @@ import PlutusCore.Data
99import PlutusCore.Generators.QuickCheck.Builtin
1010import 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
2214import Test.Tasty
2315import 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
You can’t perform that action at this time.
0 commit comments