fixed a syntax error in var-01.hcl
This commit is contained in:
parent
c80dd5820d
commit
3c5dd6de57
2
t/run.sh
2
t/run.sh
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
$@ | grep -E ^ERROR: && exit 1
|
$@ 2>&1 | grep -Eq ^ERROR: && exit 1
|
||||||
exit 0
|
exit 0
|
||||||
|
19
t/var-01.hcl
19
t/var-01.hcl
@ -74,14 +74,16 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
(defun x()
|
(defun x()
|
||||||
(do
|
(set R
|
||||||
| x |
|
(do
|
||||||
(set x 1)
|
| x |
|
||||||
(while (< x j)
|
(set x 1)
|
||||||
(defun Q() x)
|
(while (< x j)
|
||||||
(set x (+ x 1))
|
(defun Q() x)
|
||||||
|
(set x (+ x 1))
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -90,3 +92,6 @@
|
|||||||
(set t (Q))
|
(set t (Q))
|
||||||
(if (/= t 99) (print "ERROR: t is not 99\n")
|
(if (/= t 99) (print "ERROR: t is not 99\n")
|
||||||
else (printf "OK: %d\n" t))
|
else (printf "OK: %d\n" t))
|
||||||
|
|
||||||
|
(if (nqv? R false) (print "ERROR: R is not false\n")
|
||||||
|
else (printf "OK: %O\n" R))
|
||||||
|
Loading…
Reference in New Issue
Block a user