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

neg combinator results in unhelpful failure logging #300

Open
craigfe opened this issue Apr 21, 2021 · 1 comment
Open

neg combinator results in unhelpful failure logging #300

craigfe opened this issue Apr 21, 2021 · 1 comment
Labels

Comments

@craigfe
Copy link
Member

craigfe commented Apr 21, 2021

The neg : 'a testable -> 'a testable combinator inverts the meaning of equality used for testing, but doesn't signal this to the printing logic in any way. This can produce some confusing output:

Alcotest.(check @@ neg int) "" 1 1
File "tests/main.ml", line 25, character 21:

   Expected: `1'
   Received: `1'
@ethanuppal
Copy link

Any update on this?

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

No branches or pull requests

2 participants