summaryrefslogtreecommitdiffstats
path: root/tests/compExpr.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-01 14:25:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-01 14:25:49 (GMT)
commitb7efdfe9bc03114b633073ed9d4423e4f88582c5 (patch)
treedef8a718bfc5e1ea62892acbdad2afda27b07a3b /tests/compExpr.test
parent63855497af431a6ee84d67b62ade8694485d76c9 (diff)
parent3b0ee42270085b039b75e2e27a3a145399a1bfac (diff)
downloadtcl-b7efdfe9bc03114b633073ed9d4423e4f88582c5.zip
tcl-b7efdfe9bc03114b633073ed9d4423e4f88582c5.tar.gz
tcl-b7efdfe9bc03114b633073ed9d4423e4f88582c5.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/compExpr.test')
-rw-r--r--tests/compExpr.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/compExpr.test b/tests/compExpr.test
index 0be2126..4ef155b 100644
--- a/tests/compExpr.test
+++ b/tests/compExpr.test
@@ -308,16 +308,16 @@ test compExpr-4.9 {CompileCondExpr procedure, error in "false" clause} {
} {0 15}
test compExpr-5.1 {CompileMathFuncCall procedure, math function found} {
- format %.6g [expr atan2(1.0, 2.0)]
+ format %.6g [expr {atan2(1.0, 2.0)}]
} 0.463648
test compExpr-5.2 {CompileMathFuncCall procedure, math function not found} -body {
expr {do_it()}
} -returnCodes error -match glob -result {* "*do_it"}
-test compExpr-5.5 {CompileMathFuncCall procedure, too few arguments} -body {
+test compExpr-5.5 {CompileMathFuncCall procedure, not enough arguments} -body {
expr {atan2(1.0)}
-} -returnCodes error -match glob -result {too few arguments for math function*}
+} -returnCodes error -match glob -result {not enough arguments for math function*}
test compExpr-5.6 {CompileMathFuncCall procedure, complex argument} {
- format %.6g [expr pow(2.1, 27.5-(24.4*(5%2)))]
+ format %.6g [expr {pow(2.1, 27.5-(24.4*(5%2)))}]
} 9.97424
test compExpr-5.7 {CompileMathFuncCall procedure, error in argument} -body {
expr {sinh(2.*)}