Skip to content

Commit 341c5e4

Browse files
committed
Move non-reusable tests to test
1 parent d9e00e7 commit 341c5e4

File tree

2 files changed

+8
-10
lines changed
  • eras/shelley/impl

2 files changed

+8
-10
lines changed

eras/shelley/impl/test/Test/Cardano/Ledger/Shelley/Binary/GoldenSpec.hs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import Paths_cardano_ledger_shelley (getDataFileName)
88
import Test.Cardano.Ledger.Common
99
import Test.Cardano.Ledger.Core.JSON (goldenJsonPParamsSpec, goldenJsonPParamsUpdateSpec)
1010
import Test.Cardano.Ledger.Shelley.Arbitrary ()
11-
import qualified Test.Cardano.Ledger.Shelley.Binary.Golden as ShelleyGolden
11+
import Test.Cardano.Ledger.Shelley.Binary.Golden (
12+
goldenNewEpochStateExpectation,
13+
shelleyDecodeDuplicateDelegCertSucceeds,
14+
)
1215
import Test.Cardano.Ledger.Shelley.Era ()
1316

1417
spec :: Spec
@@ -18,4 +21,6 @@ spec =
1821
goldenJsonPParamsSpec @ShelleyEra
1922
beforeAll (getDataFileName "golden/pparams-update.json") $
2023
goldenJsonPParamsUpdateSpec @ShelleyEra
21-
ShelleyGolden.spec
24+
prop "NewEpochState" $ goldenNewEpochStateExpectation @ShelleyEra
25+
describe "TxCerts" $ do
26+
forEachEraVersion @ShelleyEra shelleyDecodeDuplicateDelegCertSucceeds

eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/Binary/Golden.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
module Test.Cardano.Ledger.Shelley.Binary.Golden (
88
goldenNewEpochStateExpectation,
99
duplicateDelegCertsTxBody,
10-
spec,
10+
shelleyDecodeDuplicateDelegCertSucceeds,
1111
module Test.Cardano.Ledger.Core.Binary.Golden,
1212
) where
1313

@@ -140,10 +140,3 @@ shelleyDecodeDuplicateDelegCertSucceeds version =
140140
mkBasicTxBody @ShelleyEra @TopTx
141141
& certsTxBodyL .~ SSeq.fromList [testCert, testCert]
142142
& ttlTxBodyL .~ SlotNo 300
143-
144-
spec :: Spec
145-
spec =
146-
describe "Golden" $ do
147-
prop "NewEpochState" $ goldenNewEpochStateExpectation @ShelleyEra
148-
describe "TxCerts" $ do
149-
forEachEraVersion @ShelleyEra shelleyDecodeDuplicateDelegCertSucceeds

0 commit comments

Comments
 (0)