added a test case to check a block expression as a conditional expression for if
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-09 22:48:04 +09:00
parent 8345e2f949
commit 00ad4dd779
3 changed files with 6 additions and 4 deletions

View File

@ -49,6 +49,9 @@ if (eqv? J 1296) {
}
k := 5
if { q := 10; k < q } { ## a block expression is a normal expression. so t can be used as a conditional expression for if
printf "OK: k is less than q\n"
} else (printf "BAD: k is not less than q\n")
} ## END