Skip to content

Commit

Permalink
Add Imp tests for DELEG rule
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Sep 4, 2024
1 parent 9030d83 commit 2fea09f
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 0 deletions.
1 change: 1 addition & 0 deletions eras/conway/impl/cardano-ledger-conway.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ library testlib
Test.Cardano.Ledger.Conway.ImpTest
Test.Cardano.Ledger.Conway.Imp
Test.Cardano.Ledger.Conway.Imp.BbodySpec
Test.Cardano.Ledger.Conway.Imp.DelegSpec
Test.Cardano.Ledger.Conway.Imp.EpochSpec
Test.Cardano.Ledger.Conway.Imp.EnactSpec
Test.Cardano.Ledger.Conway.Imp.GovSpec
Expand Down
5 changes: 5 additions & 0 deletions eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Cardano.Ledger.BaseTypes (Inject, natVersion)
import Cardano.Ledger.Conway.Core
import Cardano.Ledger.Conway.Rules (
ConwayBbodyPredFailure,
ConwayDelegPredFailure,
ConwayEpochEvent,
ConwayGovCertPredFailure,
ConwayGovPredFailure,
Expand All @@ -32,6 +33,7 @@ import Data.Typeable (Typeable)
import qualified Test.Cardano.Ledger.Babbage.Imp as BabbageImp
import Test.Cardano.Ledger.Common
import qualified Test.Cardano.Ledger.Conway.Imp.BbodySpec as Bbody
import qualified Test.Cardano.Ledger.Conway.Imp.DelegSpec as Deleg
import qualified Test.Cardano.Ledger.Conway.Imp.EnactSpec as Enact
import qualified Test.Cardano.Ledger.Conway.Imp.EpochSpec as Epoch
import qualified Test.Cardano.Ledger.Conway.Imp.GovCertSpec as GovCert
Expand All @@ -57,6 +59,7 @@ spec ::
, InjectRuleFailure "LEDGER" AlonzoUtxowPredFailure era
, InjectRuleFailure "LEDGER" ShelleyUtxoPredFailure era
, InjectRuleFailure "LEDGER" ShelleyUtxowPredFailure era
, InjectRuleFailure "LEDGER" ConwayDelegPredFailure era
, InjectRuleFailure "LEDGER" ConwayGovCertPredFailure era
, InjectRuleFailure "LEDGER" ConwayLedgerPredFailure era
, InjectRuleFailure "BBODY" ConwayBbodyPredFailure era
Expand All @@ -74,6 +77,7 @@ spec = do
describe "ConwayImpSpec - post bootstrap (protocol version 10)" $
withImpStateWithProtVer @era (natVersion @10) $ do
describe "BBODY" $ Bbody.spec @era
describe "DELEG" $ Deleg.spec @era
describe "ENACT" $ Enact.spec @era
describe "EPOCH" $ Epoch.spec @era
describe "GOV" $ Gov.spec @era
Expand All @@ -85,6 +89,7 @@ spec = do
describe "ConwayImpSpec - bootstrap phase (protocol version 9)" $
withImpState @era $ do
describe "BBODY" $ Bbody.spec @era
describe "DELEG" $ Deleg.spec @era
describe "ENACT" $ Enact.relevantDuringBootstrapSpec @era
describe "EPOCH" $ Epoch.relevantDuringBootstrapSpec @era
describe "GOV" $ Gov.relevantDuringBootstrapSpec @era
Expand Down
Loading

0 comments on commit 2fea09f

Please sign in to comment.