aboutsummaryrefslogtreecommitdiff
path: root/tests/if-else/testscript
blob: 5f53c01a9418b10aab2c623af0ea299daa0fc8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# file      : tests/if-else/testscript
# license   : MIT; see accompanying LICENSE file

# Test if-else.

# @@ TODO: more test from old-tests/

.include ../common.testscript

: null
:
$* <<EOI 2>>EOE != 0
if [null]
  print t
EOI
<stdin>:1:4: error: invalid bool value: null
EOE