File tree Expand file tree Collapse file tree
plutus-core/untyped-plutus-core/testlib/Flat
plutus-ledger-api/test/Spec/V1
plutus-tx-plugin/test-ledger-api/Spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import PlutusCore.Generators.QuickCheck.Builtin ()
2222import PlutusCore.Name.Unique (Name (.. ), TyName (.. ), Unique (.. ))
2323import Test.Tasty
2424import Test.Tasty.HUnit
25- import Test.Tasty.QuickCheck
25+ import Test.Tasty.QuickCheck hiding ( Some )
2626import Universe (Some (.. ), ValueOf (.. ))
2727import UntypedPlutusCore.Core.Type
2828
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ x <=> y = x === y .&&. y === x
2626x </> y = x =/= y .&&. y =/= x
2727
2828scaleTestsBy :: Testable prop => Int -> prop -> Property
29- scaleTestsBy factor = withMaxSuccess (100 * factor) . mapSize (* factor)
29+ scaleTestsBy factor = withNumTests (100 * factor) . mapSize (* factor)
3030
3131{-| Apply a function to an arbitrary number of elements of the given list. The elements are chosen
3232at random. -}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ x <=> y = x === y .&&. y === x
2727x </> y = x =/= y .&&. y =/= x
2828
2929scaleTestsBy :: Testable prop => Int -> prop -> Property
30- scaleTestsBy factor = withMaxSuccess (100 * factor) . mapSize (* factor)
30+ scaleTestsBy factor = withNumTests (100 * factor) . mapSize (* factor)
3131
3232{-| Apply a function to an arbitrary number of elements of the given list. The elements are chosen
3333at random. -}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ test_Plinth_MintValueBurnedIsPositive =
145145
146146scaleTestsBy :: QC. Testable prop => Haskell. Int -> prop -> QC. Property
147147scaleTestsBy factor =
148- QC. withMaxSuccess (100 Haskell. * factor) . QC. mapSize (Haskell. * factor)
148+ QC. withNumTests (100 Haskell. * factor) . QC. mapSize (Haskell. * factor)
149149
150150cekProp :: CompiledCode Bool -> Property
151151cekProp code = evaluationResultMatchesHaskell code (===) True
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ test_Plinth_MintValueBurnedIsPositive =
145145
146146scaleTestsBy :: QC. Testable prop => Haskell. Int -> prop -> QC. Property
147147scaleTestsBy factor =
148- QC. withMaxSuccess (100 Haskell. * factor) . QC. mapSize (Haskell. * factor)
148+ QC. withNumTests (100 Haskell. * factor) . QC. mapSize (Haskell. * factor)
149149
150150cekProp :: CompiledCode Bool -> Property
151151cekProp code = evaluationResultMatchesHaskell code (===) True
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ test_Plinth_CorrectTokenQuantitiesAreSelected =
112112
113113scaleTestsBy :: Testable prop => Haskell. Int -> prop -> Property
114114scaleTestsBy factor =
115- withMaxSuccess (100 Haskell. * factor) . mapSize (Haskell. * factor)
115+ withNumTests (100 Haskell. * factor) . mapSize (Haskell. * factor)
116116
117117cekProp :: CompiledCode Bool -> Property
118118cekProp code = evaluationResultMatchesHaskell code (===) True
You can’t perform that action at this time.
0 commit comments