2 # Copyright (C) 2008, Parrot Foundation.
5 .include 'hllmacros.pir'
7 .include 'test_more.pir'
11 ok(1, 'included .hll macros definitions')
13 ok(1, 'before embedded newline') .NL() ok(1, 'after embedded newline')
18 ok (1, '.If with true condition')
21 ok (0, '.If with false condition')
25 ok (1, '.Unless with false condition')
28 ok (0, '.Unless with true condition')
32 ok (1, '.IfElse, true if')
34 ok (0, '.IfElse, true else')
37 ok (0, '.IfElse, false if')
39 ok (1, '.IfElse, false else')
47 ok (1, '.While doing something')
49 ok (0, '.While doing something')
53 ok (0, 'while body should never happen')
58 ok (1, '.DoWhile doing something when the condition is false')
66 ok (1, '.DoWhile doing something')
68 ok (0, '.DoWhile doing something')
81 ok (1, '.Loop worked')
83 ok (0, '.Loop failed')
89 ok (1, 'initial condition')
96 ok (1, '.For continue worked')
98 ok (0, '.For continue failed')
101 ok (1, '.For body worked')
103 ok (0, '.For body failed')
106 $P1 = new 'ResizablePMCArray'
112 $S1 = '.Foreach' . $S0
122 # vim: expandtab shiftwidth=4 ft=pir: