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

do not fold over range pt 2 #2238

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Conversation

JaredCorduan
Copy link
Contributor

There was actually a second fold over a range in the applyRUpd function, ie the problem fixed in #2136 was manifest somewhere else. I've audited the code for all uses of range.

This PR would be very tiny, except for the fact that I added a lot to the error message in the property test that found the problem.

Jared Corduan added 2 commits April 14, 2021 15:53
The preservation of ada property test discovered a bug, which can be
recreated with:

TASTY_PATTERN="Ada is preserved" cabal test \
  cardano-ledger-shelley-ma-test --test-options "--quickcheck-replay=172459"

This was, in fact, the same root problem fixed in
2dda291.
I audited all other uses of the `range` function.
@JaredCorduan JaredCorduan force-pushed the jc/do-not-fold-over-range-pt-2 branch from a087e21 to 55eb0cd Compare April 14, 2021 20:15
Copy link
Contributor

@nc6 nc6 left a comment

Choose a reason for hiding this comment

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

Well caught!

@JaredCorduan JaredCorduan merged commit 1f58995 into master Apr 15, 2021
@iohk-bors iohk-bors bot deleted the jc/do-not-fold-over-range-pt-2 branch April 15, 2021 12:28
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