-
Notifications
You must be signed in to change notification settings - Fork 80
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
document testable #319
Comments
Hi @martindemello, By "the project docs", do you mean the README in this repository? The generated docs at http://mirage.github.io/alcotest/alcotest/Alcotest/ do reference the |
yeah, i meant the README and the examples. i didn't see the generated docs because they are also not linked to from the README :) but the package was easy enough to get up to speed with once i got the basic idea; i'll try to contribute some more docs once i've used it for a bit. |
Good point! They are linked from a little docs badge, but it's not very visible – hopefully #320 will improve that.
Thanks! |
The approach using a first-class module of type |
Here's an example for a fictitious module let fizz = Alcotest.testable (Fmt.of_to_string Fizz.to_string) Fizz.equal
...
let test_something () =
Alcotest.check fizz "equal" Fizz.zero (Fizz.of_string "0") |
I found out about adding new testable types from this blogpost; there is nothing in the project docs about it.
The text was updated successfully, but these errors were encountered: