| 1 | (* Four checks, two of them failing: the exit procedure, not main, |
| 2 | must say so on standard error and set status 1. *) |
| 3 | module CheckFail; |
| 4 | import Check, Out; |
| 5 | |
| 6 | proc main*; |
| 7 | begin |
| 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); |
| 13 | end; |
| 14 | |
| 15 | end CheckFail. |