Skip to content

Commit

Permalink
ormolize
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSheard committed Nov 4, 2021
1 parent e99b0b4 commit 68024dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,11 @@ import Test.Cardano.Ledger.Shelley.PropertyTests
relevantCasesAreCovered,
removedAfterPoolreap,
)
import Test.Cardano.Ledger.Shelley.Rules.TestChain(incrementalStakeProp)
import Test.Cardano.Ledger.Shelley.Rules.Chain (ChainState (..))
import Test.Cardano.Ledger.Shelley.Rules.TestChain (incrementalStakeProp)
import Test.Tasty
import Test.Tasty.QuickCheck


-- ======================================================================================
-- It is incredably hard to debug property test generators. These functions mimic the
-- set up of a property test, so one can inspect some randomly generatated transactions
Expand Down Expand Up @@ -311,8 +310,9 @@ alonzoPropertyTests =
"Alonzo property tests"
[ propertyTests @A @L,
Alonzo.propertyTests,
testProperty "Incremental stake distribution at epoch boundaries agrees"
(incrementalStakeProp (Proxy:: Proxy A))
testProperty
"Incremental stake distribution at epoch boundaries agrees"
(incrementalStakeProp (Proxy :: Proxy A))
]

-- | A select subset of all the property tests
Expand Down
2 changes: 1 addition & 1 deletion eras/alonzo/test-suite/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ nightlyTests :: TestTree
nightlyTests =
testGroup
"Alonzo tests"
[ alonzoPropertyTests, -- These are the full property tests
[ alonzoPropertyTests, -- These are the full property tests
CDDL.tests 50
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ utxoTransition = do
let refunded = Shelley.keyRefunds pp txb
let txCerts = toList $ getField @"certs" txb
let depositChange = totalDeposits pp (`Map.notMember` stakepools) txCerts Val.<-> refunded
let utxoAdd = txouts txb -- These will be inserted into the UTxO
let utxoAdd = txouts txb -- These will be inserted into the UTxO
let utxoDel = eval (txins @era txb utxo) -- These will be deleted fromthe UTxO
let newIncStakeDistro = updateStakeDistribution @era incStake utxoDel utxoAdd

Expand Down

0 comments on commit 68024dd

Please sign in to comment.