diff options
author | hobbs <hobbs> | 1999-12-04 06:16:48 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-12-04 06:16:48 (GMT) |
commit | 8bd88ae75ebf3df12baf9472747baf999a089c8c (patch) | |
tree | de4d563d31e6b705edb459823af308d53d953c2b /tests/expr.test | |
parent | 0cbb9c47d7cd5a71ca1189ab216bf3ded3800278 (diff) | |
download | tcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.zip tcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.tar.gz tcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.tar.bz2 |
* tests/env.test: removed knownBug limitation from working test
* tests/all.tcl: ensured that ::tcltest::testsDirectory would be
set to an absolute path
* tests/expr-old.test:
* tests/parseExpr.test:
* tests/string.test:
* generic/tclGet.c:
* generic/tclInt.h:
* generic/tclObj.c:
* generic/tclParseExpr.c:
* generic/tclUtil.c:
* generic/tclExecute.c: added TclCheckBadOctal routine to enhance
error message checking for when users use invalid octal numbers
(like 08), as well as replumbed the Expr*Funcs with a new
VerifyExprObjType to simplify type handling.
Diffstat (limited to 'tests/expr.test')
-rw-r--r-- | tests/expr.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/expr.test b/tests/expr.test index 656c993..042002a 100644 --- a/tests/expr.test +++ b/tests/expr.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: expr.test,v 1.6 1999/08/19 03:00:13 hobbs Exp $ +# RCS: @(#) $Id: expr.test,v 1.7 1999/12/04 06:16:48 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -680,7 +680,7 @@ test expr-20.1 {wrong brace matching} { set cmd "expr $l$q|$q == $q$r$q$r" list [catch $cmd a] $a } {1 {extra characters after close-brace}} -test expr-20.2 {double invocation of variable traces} {knownBug} { +test expr-20.2 {double invocation of variable traces} { set exprtracecounter 0 proc exprtraceproc {args} { upvar #0 exprtracecounter counter @@ -711,6 +711,12 @@ test expr-20.5 {proper double evaluation compilation, working case} { set a yellow expr 1?{$a}:0 } yellow +test expr-20.6 {handling of compile error in trial compile} { + list [catch {expr + {[incr]}} msg] $msg +} {1 {wrong # args: should be "incr varName ?increment?"}} +test expr-20.7 {handling of compile error in runtime case} { + list [catch {expr + {[error foo]}} msg] $msg +} {1 foo} # cleanup if {[info exists a]} { |