aboutsummaryrefslogtreecommitdiff
path: root/tests/if-else/testscript
blob: afc03027ff2ed3cbcf75b4c822089a0a6c21e725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# file      : tests/if-else/testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# 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