Skip to content

Commit bbca226

Browse files
committed
Add Era module to Mary testlib
1 parent 05bd430 commit bbca226

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

eras/mary/impl/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* Expose constructor `MkMaryTxBody`
99
* Add default implementation for `mintValueTxBodyF`
1010

11+
### `testlib`
12+
13+
* Added `Era` module with `MaryEraTest` class
14+
1115
## 1.8.0.0
1216

1317
* Add `DecCBOR` instance for `MaryTxBody`

eras/mary/impl/cardano-ledger-mary.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ library testlib
100100
Test.Cardano.Ledger.Mary.Binary.Annotator
101101
Test.Cardano.Ledger.Mary.Binary.Cddl
102102
Test.Cardano.Ledger.Mary.CDDL
103+
Test.Cardano.Ledger.Mary.Era
103104
Test.Cardano.Ledger.Mary.Imp
104105
Test.Cardano.Ledger.Mary.Imp.UtxoSpec
105106
Test.Cardano.Ledger.Mary.ImpTest
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{-# LANGUAGE UndecidableSuperClasses #-}
2+
{-# OPTIONS_GHC -Wno-orphans #-}
3+
4+
module Test.Cardano.Ledger.Mary.Era (
5+
module Test.Cardano.Ledger.Allegra.Era,
6+
MaryEraTest,
7+
) where
8+
9+
import Cardano.Ledger.Mary
10+
import Cardano.Ledger.Mary.Core
11+
import Test.Cardano.Ledger.Allegra.Era
12+
import Test.Cardano.Ledger.Mary.Arbitrary ()
13+
import Test.Cardano.Ledger.Mary.TreeDiff ()
14+
15+
class
16+
( AllegraEraTest era
17+
, MaryEraTxBody era
18+
) =>
19+
MaryEraTest era
20+
21+
instance EraTest MaryEra
22+
23+
instance ShelleyEraTest MaryEra
24+
25+
instance AllegraEraTest MaryEra
26+
27+
instance MaryEraTest MaryEra

0 commit comments

Comments
 (0)