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

Add richer explanations for falsified properties #7

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Add richer explanations for falsified properties #7

merged 2 commits into from
Sep 8, 2024

Conversation

wuest
Copy link
Owner

@wuest wuest commented Sep 8, 2024

Closes #4

Failures are now given rich output to help developers understand the conditions under which the properties fail to hold. Examples from the fails Rake job:

  1) Failure:
PropertyTest#test_also_falsifiable [test/should_fail/property_fails.rb:15]:
A counterexample to a property has been found after 16 valid examples.
The values at the time of the failure were:
        xs: []
        ys: []

  2) Failure:
PropertyTest#test_falsifiable [test/should_fail/property_fails.rb:7]:
A counterexample to a property has been found after 0 valid examples.
The values at the time of the failure were:
        n: 0
        m: -1

@wuest wuest merged commit 3a0287e into main Sep 8, 2024
14 checks passed
@wuest wuest deleted the explain branch September 8, 2024 00:50
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.

Clean failure messages
1 participant