(* Tiny unit test framework - really just to help find which line is busted *)
let exit_status = ref 0
let suite_name = ref ""
let group_name = ref ""
let case_num = ref 0
let print_checkpoints = false
group_name := !suite_name ^ "/" ^ name;
case_num := 0;
if print_checkpoints then prerr_endline
incr case_num;
if not cond then exit_status := 10;
;
if exit_on_fail && not cond then exit !exit_status else (
suite_name := name;
if print_checkpoints then prerr_endline ;
f (