1 * unit tests for DOIF/ELIF/ELSE/ENDI blocks and comparison operators
4 DBG: OUTS "# TEST: ifblocks: 24 tests"
88 DOIF 1 eq 1 AND 2 eq 2
102 DOIF 1 eq 2 OR 2 eq 3
103 DBG: OUTS "not ok 15"
108 * test embedded if blocks
111 DBG: OUTS "not ok 16"
113 DBG: OUTS "not ok 16"
119 DBG: OUTS "not ok 16"
125 DBG: OUTS "not ok 17"
129 DBG: OUTS "not ok 17"
133 * (1 == 2 && 2 == 1) || 1 == 1
134 DOIF 1 gt 2 and 2 lt 1 or 1 eq 1
137 DBG: OUTS "not ok 18"
140 * test AND and OR, ie, ordering
141 DOIF 1 ne 1 and 2 eq 3 and 4 eq 5 or 1 eq 1
144 DBG: OUTS "not ok 19"
150 DBG: OUTS "not ok 20"
156 DOIF 1 eq 2 AND 2 eq 2
157 DBG: OUTS "not ok 21"
164 DBG: OUTS "not ok 22"
166 DBG: OUTS "not ok 22"
168 DBG: OUTS "not ok 22"
173 * test more chained elifs, with nesting
177 DBG: OUTS "not ok 23"
182 DBG: OUTS "not ok 23"
188 * test that only one elif branch is evaluated
191 DBG: OUTS "not ok 24"
197 DOIF VA00 eq 2 or VA00 eq 0
198 DBG: OUTS "not ok 24"