raz / test / run / CheckFail.raz

15 lines · 400 B · raw · history · last change 280d4d6f

1(* Four checks, two of them failing: the exit procedure, not main,
2 must say so on standard error and set status 1. *)
3module CheckFail;
4import Check, Out;
5
6proc main*;
7begin
8 Out.str("before the failures\n");
9 Check.ok(true, "passes");
10 Check.ok(false, "ok fails");
11 Check.str("str fails", "a\nb", "a\tb");
12 Check.int("int fails", -9223372036854775807 - 1, 0);
13end;
14
15end CheckFail.