summaryrefslogtreecommitdiffstats
path: root/tests/compExpr.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-04-17 19:47:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-04-17 19:47:33 (GMT)
commit14c8999863d6ab3b9d3450c0be73345c7d3c37f3 (patch)
tree81d7a96620d7c450b4a4b82d7132749d84d1d1fa /tests/compExpr.test
parentacf5e4c81a87c4e02abee2c4ea85334f9cd40fa8 (diff)
downloadtcl-14c8999863d6ab3b9d3450c0be73345c7d3c37f3.zip
tcl-14c8999863d6ab3b9d3450c0be73345c7d3c37f3.tar.gz
tcl-14c8999863d6ab3b9d3450c0be73345c7d3c37f3.tar.bz2
style revisions to latest commit
Diffstat (limited to 'tests/compExpr.test')
-rw-r--r--tests/compExpr.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/compExpr.test b/tests/compExpr.test
index cd407d3..0174800 100644
--- a/tests/compExpr.test
+++ b/tests/compExpr.test
@@ -8,10 +8,10 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compExpr.test,v 1.6 2001/12/06 10:59:17 dkf Exp $
+# RCS: @(#) $Id: compExpr.test,v 1.6.4.1 2008/04/17 19:47:35 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
- package require tcltest
+ package require tcltest 2
namespace import -force ::tcltest::*
}
@@ -317,6 +317,10 @@ test compExpr-5.8 {CompileMathFuncCall procedure, too many arguments} {
test compExpr-5.9 {CompileMathFuncCall procedure, too many arguments} {
list [catch {expr {0 <= rand(5.2)}} msg] $msg
} {1 {too many arguments for math function}}
+test compExpr-5.10 {error return from unbraced math func call of unknown function} -body {
+ expr {bogus()}
+} -returnCodes error -result {unknown math function "bogus"}
+
test compExpr-6.1 {LogSyntaxError procedure, error in expr longer than 60 chars} {
list [catch {expr {(+0123456)*(+0123456)*(+0123456)*(+0123456)*(+0123456)*(+0123456)*(+0123456)/} -1 foo 3} msg] $msg