11{-# LANGUAGE TypeApplications #-}
2+ {-# OPTIONS_GHC -Wno-orphans #-}
23
34module Main where
45
@@ -11,27 +12,28 @@ import qualified Test.Cardano.Ledger.Alonzo.BinarySpec as BinarySpec
1112import qualified Test.Cardano.Ledger.Alonzo.GoldenSpec as Golden
1213import qualified Test.Cardano.Ledger.Alonzo.GoldenTranslation as GoldenTranslation
1314import qualified Test.Cardano.Ledger.Alonzo.Imp as Imp
14- import qualified Test.Cardano.Ledger.Alonzo.Imp.TxInfoSpec as TxInfoImp
15+ import qualified Test.Cardano.Ledger.Alonzo.Imp.TxInfoSpec as TxInfo
1516import Test.Cardano.Ledger.Alonzo.ImpTest ()
1617import Test.Cardano.Ledger.Common
1718import Test.Cardano.Ledger.Core.JSON (roundTripJsonEraSpec )
19+ import Test.Cardano.Ledger.Era
1820import Test.Cardano.Ledger.Shelley.JSON (roundTripJsonShelleyEraSpec )
1921
22+ instance EraSpec AlonzoEra where
23+ eraImpSpec = Imp. spec
24+
2025main :: IO ()
2126main =
22- ledgerTestMain $
23- describe " Alonzo" $ do
24- BinarySpec. spec
25- Canonical. spec
26- CddlSpec. spec
27- roundTripJsonEraSpec @ AlonzoEra
28- roundTripJsonShelleyEraSpec @ AlonzoEra
29- GoldenTranslation. tests
30- Golden. spec
31- describe " Imp" $ do
32- Imp. spec @ AlonzoEra
33- describe " CostModels" $ do
34- CostModelsSpec. spec @ AlonzoEra
35- describe " TxWits" $ do
36- TxWitsSpec. spec @ AlonzoEra
37- TxInfoImp. spec
27+ ledgerEraTestMain @ AlonzoEra $ do
28+ BinarySpec. spec
29+ Canonical. spec
30+ CddlSpec. spec
31+ roundTripJsonEraSpec @ AlonzoEra
32+ roundTripJsonShelleyEraSpec @ AlonzoEra
33+ GoldenTranslation. tests
34+ Golden. spec
35+ describe " CostModels" $ do
36+ CostModelsSpec. spec @ AlonzoEra
37+ describe " TxWits" $ do
38+ TxWitsSpec. spec @ AlonzoEra
39+ TxInfo. spec
0 commit comments