print_endline str;
try
(solve ++ problem_of ++ Parser.problem_of_string) ("$" ^ str)
- with Simple.Fail _ as e ->
- let str = "$ failing test problem \n# Failed because: " ^ Printexc.to_string e ^ str in
+ with Failure _ as e ->
+ let str = "$! failing test problem \n# Failed because: " ^ Printexc.to_string e ^ str in
Printf.fprintf oc "%s\n" str
+ | Unseparable _ -> ()
) num ;
close_out oc;
print_endline ("\n\n---- </TESTS> " ^ file);