diff options
author | D. Bohdan <dbohdan@dbohdan.com> | 2020-09-27 07:19:08 +0000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2020-09-27 19:25:28 +1000 |
commit | 84cf3d13ada8629693c5e8508b1323f5b379cfce (patch) | |
tree | 39857f63d351890e33640ddf0797e567fb16f8cc /tests | |
parent | 4fc268defe0738c471fea6de5b33d6e356aa7082 (diff) | |
download | jimtcl-84cf3d13ada8629693c5e8508b1323f5b379cfce.zip jimtcl-84cf3d13ada8629693c5e8508b1323f5b379cfce.tar.gz jimtcl-84cf3d13ada8629693c5e8508b1323f5b379cfce.tar.bz2 |
core: make unary "!" work with non-int booleans
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expr.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test index b195d4a..d73ddbc 100644 --- a/tests/expr.test +++ b/tests/expr.test @@ -142,4 +142,12 @@ test expr-4.1 "Shimmering" { set a } {2} +test expr-5.1 "Not" { + lmap x {1 0 true false on off yes no} { expr {!$x} } +} {0 1 0 1 0 1 0 1} + +test expr-5.2 "Not" -body { + expr {!this} +} -returnCodes error -result {syntax error in expression: "!this"} + testreport |