-
Notifications
You must be signed in to change notification settings - Fork 42
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
[WIP] Allow ExUnit assert function for forall return #207
base: master
Are you sure you want to change the base?
[WIP] Allow ExUnit assert function for forall return #207
Conversation
61441e3
to
8408f7f
Compare
Hi @drselump14 , thank you for your PR, but I guess you are solving the problem at a wrong place: PropEr and thus PropCheck require a boolean return value. But if I understand your approach correctly, then you kind of change the semantics of Did I got your intention right? Cheers, Klaus. |
Hi @alfert , thanks for the comment. The For example:
It happens because TBH I'm not sure if this PR is the best approach to solve the issue. |
I am probably projecting my own wishes on this PR but It's incredibly likely I just don't have PropCheck/proper experience to show better diffs - typically when a post condition fails I have to rerun the test with a bunch of |
Yes, reporting facilities from |
@alfert I can't imagine the assert code changing any time soon so copy pasting seems fine given that it is implemented as macros. I'm more unsure how'd you go about doing this given proper expects boolean return values... |
Note that the |
Issue: #187
Currently, propcheck
forall
function requires a boolean value return, which bit inconvenient when using ExUnit assert function. This PR fixes the issue and allow the assert function with non-boolean resultTODO: