Add roundtrip test functions skipping comparison with FlatTerm-decoded #4866
+94
−15
Garnix CI / check ghc8107:cardano-ledger-shelley-ma-test:test:cardano-ledger-shelley-ma-test [x86_64-linux]
succeeded
Feb 1, 2025 in 47m 8s
Run results
Build succeeded
Details
Last 100 lines of logs:
+++ OK, passed 100 tests.
fromCompact . toCompact == id: OK
+++ OK, passed 100 tests.
multi-asset subtraction is total: OK (0.63s)
+++ OK, passed 100000 tests.
node4826Reproducible: OK
+++ OK, passed 100 tests.
multi-assets
simple
minting: OK
transfer: OK
bounded time interval
minting, valid: OK
minting, invalid LHS too small: OK
minting, invalid LHS unspecified: OK
minting, invalid RHS too big: OK
minting, invalid RHS unspecified: OK
transfer, after minting period: OK
single key
minting, valid: OK
minting, invalid no mint signature: OK
negative minting
remove assets: OK
no negative outputs: OK
value too big: OK (0.01s)
golden tests - scaledMinDeposit
one policy, one (smallest) name: OK
one policy, one (small) name: OK
one policy, one (real) name: OK
one policy, three (small) name: OK
one policy, one (largest) name: OK
one policy, three (largest) name: OK
two policies, one (smallest) name: OK
two policies, two (small) names: OK
three policies, ninety-six (small) names: OK
Mixed MA Ledger Tests
Serialisation tests
encoded shelley types can be decoded as allegra types
decoding auxiliary data: OK (0.02s)
+++ OK, passed 100 tests.
encoded allegra types can be decoded as mary types
decoding metadata: OK
+++ OK, passed 100 tests.
TxBody
Tests for lenses
inputs: OK
outputs: OK
certs: OK
withdrawals: OK
txfree: OK
vldt: OK
update: OK
adHash: OK
mint: OK
length: OK
Timelock tests
Timelock examples roundtrip - Allegra: OK
Timelock examples roundtrip - Allegra: OK
Timelock examples roundtrip - Allegra: OK
Timelock examples roundtrip - Mary: OK
Timelock examples roundtrip - Mary: OK
Timelock examples roundtrip - Mary: OK
roundtripTimelock prop - Allegra: OK
+++ OK, passed 100 tests.
roundtripTimelock prop - Mary: OK
+++ OK, passed 100 tests.
MultiSig deserialises as Timelock: OK
+++ OK, passed 100 tests.
Golden Encoding Tests
Allegra
golden_serialize_value: OK
golden_serialize_timelock_script: OK
golden_serialize_metadata_no_scripts: OK
golden_serialize_metadata_with_scripts: OK
golden_serialize_minimal_txbody: OK
golden_serialize_full_txn_body: OK
Mary
golden_serialize_ada_only_value: OK
golden_serialize_not_just_ada_value: OK
golden_serialize_multiasset_with_negative: OK
golden_serialize_value_with_negative: OK
golden_serialize_timelock_script: OK
golden_serialize_metadata_no_scripts: OK
golden_serialize_metadata_with_scripts: OK
golden_serialize_minimal_txbody: OK
golden_serialize_full_txn_body: OK
33 bytes asset name too big: OK
All Era Roundtrip Tests
ShelleyEra
ApplyTxError: OK (1.92s)
+++ OK, passed 100 tests.
AllegraEra
ApplyTxError: OK (1.71s)
+++ OK, passed 100 tests.
MaryEra
ApplyTxError: OK (2.75s)
+++ OK, passed 100 tests.
All 184 tests passed (1041.94s)
buildPhase completed in 17 minutes 22 seconds
Loading