Skip to content
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

Ledger types testing #6618

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aleeusgr
Copy link

@aleeusgr aleeusgr commented Oct 31, 2024

This is an experiment, it consists of two parts:

  • upstreaming Arbitrary instances from plutarch to plutus-ledger-api
  • asserting the value of proposition "all types exported by plutus ledger api provide arbitraries".

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Changelog fragments have been written (if appropriate)
    • Relevant tickets are mentioned in commit messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • (For external contributions) Corresponding issue exists and is linked in the description QuickCheck Arbitrary instances for Ledger types #6210
    • Targeting master unless this is a cherry-pick backport
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@@ -136,6 +137,8 @@ tests = testGroup "plutus-ledger-api"
, Spec.CostModelParams.tests
, Spec.ContextDecoding.tests
, Value.test_Value
, Value.test_FaceValue
, OutputDatum.testOutputDatum
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get errors:

No instance for ‘Arbitrary DatumHash’                                                                            
        arising from a use of ‘arbitrary’
...
No instance for ‘Arbitrary Datum’                                                                            
        arising from a use of ‘arbitrary’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant