alcotest icon indicating copy to clipboard operation
alcotest copied to clipboard

Add a more generic check_raises

Open samoht opened this issue 7 years ago • 1 comments

The current one uses a strict equality, but in some cases you really want to pattern match on the exception to decide whether the function raised something in the right family of errors.

samoht avatar Mar 30 '17 08:03 samoht

I would like to "up" this issue. Being able to match something like Failure _ or Sys_error _ in a test would be great, particularly as the string literal is not something to be matched on, even according to the StdLib documentation.

MathiasMalandain avatar May 02 '23 13:05 MathiasMalandain