-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalized the generic unit tests in TwoPhaseValidation.hs #2674
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few minor questions and changes suggested in this review. I'd like to ask @JaredCorduan to review this PR as well, some of the changes are introduced to places of the codebase that I am not very familiar with.
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Generic/Proof.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/TwoPhaseValidation.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/TwoPhaseValidation.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/TwoPhaseValidation.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/TwoPhaseValidation.hs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TimSheard this PR looks great. The only thing we still need to clean up here is the fact that missingRequiredDatums
isn't quite correct for Babbage (see my comment above).
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/TwoPhaseValidation.hs
Show resolved
Hide resolved
in both Alonzo and Babbage eras. Fixed some errors in Updaters.hs Added txOutView to UsesTxOut.
b66deda
to
f7845d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great @TimSheard ! thank you!
The tests now work in both Alonzo and Babbage eras. Fixed some errors in Updaters.hs
This constitutes a good base of unit tests for the Babbage Rules. They do not do Babbage specific things.