Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate UTxO-HD to ouroboros-consensus-test (#4363)
-- * Use MKs in `ouroboros-consensus-test` Co-authored-by: Nick Frisby <nick.frisby@iohk.io> Co-authored-by: Damian Nadales <damian.nadales@iohk.io> Co-authored-by: Joris Dral <joris@well-typed.com> skip-checks: true -- * Some stylish changes in `ouroboros-consensus` after it was merged --------- Co-authored-by: Nick Frisby <nick.frisby@iohk.io> Co-authored-by: Damian Nadales <damian.nadales@iohk.io> Co-authored-by: Joris Dral <joris@well-typed.com>
- Loading branch information
1 parent
f7a8a57
commit 24ff4fd
Showing
68 changed files
with
5,364 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ouroboros-consensus-mock-test/test/Test/Consensus/Ledger/Mock/LedgerTables.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{-# LANGUAGE FlexibleInstances #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
{-# OPTIONS_GHC -Wno-orphans #-} | ||
|
||
module Test.Consensus.Ledger.Mock.LedgerTables (tests) where | ||
|
||
import Test.Consensus.Ledger.Mock.Generators () | ||
import Test.LedgerTables | ||
|
||
import Ouroboros.Consensus.Ledger.Basics | ||
import Ouroboros.Consensus.Mock.Ledger | ||
import Ouroboros.Consensus.Protocol.PBFT | ||
import Test.Tasty | ||
import Test.Tasty.QuickCheck | ||
|
||
type Block = SimpleBlock SimpleMockCrypto (SimplePBftExt SimpleMockCrypto PBftMockCrypto) | ||
|
||
tests :: TestTree | ||
tests = testGroup "LedgerTables" | ||
[ testProperty "Stowable laws" (prop_stowable_laws @Block) | ||
, testProperty "TableStuff laws" (prop_tablestuff_laws @Block) | ||
] | ||
|
||
instance Arbitrary (LedgerTables (LedgerState Block) ValuesMK) where | ||
arbitrary = projectLedgerTables <$> arbitrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.