ack/tests/plat/bugs/bug-22-inn_mod.mod
David Given 62edb90641 Convert the inn test to work with the test library and not import InOut; it now
runs on qemuppc again. Reenable qemuppc tests.
2016-12-11 23:06:37 +01:00

22 lines
329 B
Modula-2

MODULE test;
FROM Test IMPORT fail, finished;
TYPE charset = SET OF CHAR;
PROCEDURE Space(c: CHAR): BOOLEAN;
BEGIN
RETURN c IN charset{' ', 11C, 12C, 15C}
END Space;
BEGIN
IF Space('a') THEN
fail(1);
END;
IF NOT Space(' ') THEN
fail(2);
END;
IF NOT Space(12C) THEN
fail(3);
END;
finished;
END test.