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

Test class laws for AnyRecentEra. #3958

Conversation

jonathanknowles
Copy link
Contributor

Issue

ADP-2990

Summary

This PR tests that AnyRecentEra has lawful instances of:

  • Bounded + Enum
  • Eq
  • Show

Test Output

Cardano.Wallet.Write.Tx
  AnyRecentEra
    Class instances obey laws
      Testing Enum laws for type AnyRecentEra
        Succ Pred Identity []
          +++ OK, passed 100 tests; 104 discarded.
        Pred Succ Identity []
          +++ OK, passed 100 tests; 93 discarded.
      Testing Eq laws for type AnyRecentEra
        Transitive [] (3ms)
          +++ OK, passed 100 tests.
        Symmetric [] (3ms)
          +++ OK, passed 100 tests.
        Reflexive []
          +++ OK, passed 100 tests.
      Testing Show laws for type AnyRecentEra
        Show [] (2ms)
          +++ OK, passed 100 tests.
        Equivariance: showsPrec [] (3ms)
          +++ OK, passed 100 tests.
        Equivariance: showList [] (5ms)
          +++ OK, passed 100 tests.

Finished in 0.0094 seconds, used 0.0232 seconds of CPU time
8 examples, 0 failures

Copy link
Member

@Anviking Anviking left a comment

Choose a reason for hiding this comment

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

Thanks!

@Anviking Anviking merged commit 122aaeb into anviking/ADP-2990/no-balanceTx-in-future-eras May 26, 2023
@Anviking Anviking deleted the jonathanknowles/ADP-2990-test-laws-AnyRecentEra branch May 26, 2023 11:45
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.

2 participants