-
Notifications
You must be signed in to change notification settings - Fork 5
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
Please add test cases to the distribution #19
Comments
@triska I just commited unit test for brachylog_reverse. I'm not sure if I'm doing this right so I'll stop for now. |
For inspiration, here is an example of unit tests, written by Ulrich Neumerkel: test_clpfd_tier2.pl Note that they are using the PlUnit testing framework of SWI-Prolog. To run them, use:
PlUnit is quite flexible and also lets you state properties about all solutions. It's completely OK to have redundant choice points, but it is not OK to either omit valid solutions, or report invalid solutions. Using PlUnit is more convenient than rolling your own logic to test such properties. |
I'm finally starting on this, months after this was requested... |
Awesome work, thank you for working on this! |
Please add a set of test cases to the distribution, so that it is easier to verify changes in the compiler.
The PlUnit framework may come in handy for this. With
run_tests/0
, one can simply run all test cases and gets a report of what has worked.The text was updated successfully, but these errors were encountered: