|
8 | 8 | {-# LANGUAGE UndecidableInstances #-} |
9 | 9 | {-# OPTIONS_GHC -Wno-orphans #-} |
10 | 10 |
|
11 | | -module Test.Cardano.Ledger.Babbage.Imp (spec) where |
| 11 | +module Test.Cardano.Ledger.Babbage.Imp (spec, babbageEraSpecificSpec) where |
12 | 12 |
|
13 | | -import Cardano.Ledger.Babbage (BabbageEra) |
14 | 13 | import Cardano.Ledger.Babbage.Core |
15 | 14 | import Cardano.Ledger.Babbage.State |
16 | 15 | import Cardano.Ledger.Shelley.Rules |
17 | | -import qualified Test.Cardano.Ledger.Alonzo.Imp as AlonzoImp |
| 16 | +import qualified Test.Cardano.Ledger.Alonzo.Imp as Alonzo |
18 | 17 | import Test.Cardano.Ledger.Alonzo.ImpTest |
19 | 18 | import qualified Test.Cardano.Ledger.Babbage.Imp.PoolSpec as Pool |
20 | 19 | import qualified Test.Cardano.Ledger.Babbage.Imp.UtxoSpec as Utxo |
21 | 20 | import qualified Test.Cardano.Ledger.Babbage.Imp.UtxosSpec as Utxos |
22 | 21 | import qualified Test.Cardano.Ledger.Babbage.Imp.UtxowSpec as Utxow |
23 | 22 | import Test.Cardano.Ledger.Babbage.ImpTest (BabbageEraImp) |
24 | 23 | import Test.Cardano.Ledger.Imp.Common |
25 | | -import qualified Test.Cardano.Ledger.Shelley.Imp as ShelleyImp |
26 | 24 |
|
27 | 25 | spec :: |
28 | 26 | ( BabbageEraImp era |
29 | | - , EraSpecificSpec era |
30 | 27 | , Event (EraRule "RUPD" era) ~ RupdEvent |
31 | 28 | ) => |
32 | 29 | proxy era -> |
33 | 30 | Spec |
34 | 31 | spec era = do |
35 | | - AlonzoImp.spec era |
36 | | - withImpInitEachEraVersion era $ |
37 | | - describe "BabbageImpSpec - era generic tests" $ do |
38 | | - Utxo.spec |
39 | | - Utxow.spec |
40 | | - Utxos.spec |
| 32 | + Alonzo.spec era |
| 33 | + describe "BabbageEra Onwards" $ withImpInitEachEraVersion era $ do |
| 34 | + Utxo.spec |
| 35 | + Utxow.spec |
| 36 | + Utxos.spec |
41 | 37 |
|
42 | 38 | babbageEraSpecificSpec :: |
43 | 39 | ( BabbageEraImp era |
44 | 40 | , ShelleyEraAccounts era |
45 | 41 | , Event (EraRule "NEWEPOCH" era) ~ ShelleyNewEpochEvent era |
46 | 42 | ) => |
47 | | - SpecWith (ImpInit (LedgerSpec era)) |
48 | | -babbageEraSpecificSpec = do |
49 | | - describe "Babbage era specific Imp spec" $ |
50 | | - describe "POOL" Pool.babbageEraSpecificSpec |
51 | | - |
52 | | -instance EraSpecificSpec BabbageEra where |
53 | | - eraSpecificSpec = |
54 | | - ShelleyImp.shelleyEraSpecificSpec |
55 | | - >> AlonzoImp.alonzoEraSpecificSpec |
56 | | - >> babbageEraSpecificSpec |
| 43 | + proxy era -> |
| 44 | + Spec |
| 45 | +babbageEraSpecificSpec era = do |
| 46 | + describe "BabbageEra Specific" $ withImpInitEachEraVersion era $ do |
| 47 | + Pool.babbageEraSpecificSpec |
0 commit comments