Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions eras/alonzo/test-suite/cardano-ledger-alonzo-test.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ test-suite cardano-ledger-alonzo-test
-rtsopts

build-depends:
QuickCheck,
aeson >=2,
base,
base16-bytestring,
Expand All @@ -99,10 +98,8 @@ test-suite cardano-ledger-alonzo-test
cardano-slotting,
cardano-strict-containers,
containers,
hspec,
microlens,
plutus-ledger-api,
small-steps:{small-steps, testlib} >=1.1,
tasty,
tasty-hunit,
tasty-quickcheck,
time,
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import Lens.Micro.Extras (view)
import Test.Cardano.Ledger.Alonzo.AlonzoEraGen (sumCollateral)
import Test.Cardano.Ledger.Alonzo.EraMapping ()
import Test.Cardano.Ledger.Alonzo.Trace ()
import Test.Cardano.Ledger.Common
import Test.Cardano.Ledger.Shelley.Constants (defaultConstants)
import Test.Cardano.Ledger.Shelley.Rules.Chain (
CHAIN,
Expand All @@ -51,15 +52,6 @@ import Test.Cardano.Ledger.Shelley.Rules.TestChain (
ledgerTraceFromBlock,
)
import Test.Control.State.Transition.Trace (SourceSignalTarget (..), sourceSignalTargets)
import Test.QuickCheck (
Property,
conjoin,
counterexample,
(.&&.),
(===),
)
import Test.Tasty
import qualified Test.Tasty.QuickCheck as TQC

instance Embed (AlonzoBBODY AlonzoEra) (CHAIN AlonzoEra) where
wrapFailed = BbodyFailure
Expand All @@ -71,9 +63,9 @@ traceLen = 100
data HasPlutus = HasPlutus | NoPlutus
deriving (Show)

tests :: TestTree
tests :: Spec
tests =
TQC.testProperty "alonzo specific" $
prop "alonzo specific" $
forAllChainTrace @AlonzoEra traceLen defaultConstants $ \tr ->
conjoin $ map alonzoSpecificProps (sourceSignalTargets tr)

Expand Down
Loading