Using Alcotest.check_raises instead of doing the try / with ourselves is clearer in the code and in the errors we get when tests fail.
Using Alcotest.testable values instead of cramming everything in asserts also yields better error messages on test failure.
Using
Alcotest.check_raises
instead of doing thetry / with
ourselves is clearer in the code and in the errors we get when tests fail. UsingAlcotest.testable
values instead of cramming everything in asserts also yields better error messages on test failure.