summaryrefslogtreecommitdiffstats
path: root/tests/parseExpr.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-08 14:32:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-08 14:32:13 (GMT)
commitf0d4f625858cad553260fa36346ff6f023a77473 (patch)
treebda94d4bb85160e4ecc8cc875661c61f743c1ecd /tests/parseExpr.test
parentdf69e84a53cae6ab03b1ca685e630716f86348ce (diff)
downloadtcl-f0d4f625858cad553260fa36346ff6f023a77473.zip
tcl-f0d4f625858cad553260fa36346ff6f023a77473.tar.gz
tcl-f0d4f625858cad553260fa36346ff6f023a77473.tar.bz2
Shortcut in TclParseNumber(): If obj is a dict or list, don't bother to generate the string representation if we know already beforehand that the parsing will fail.
Use TCL_NO_DEPRECATED in stead of KILL_OCTAL for removing the (deprecated un-prefixed) octal support. Adapt test-cases, so they work without octal support as well.
Diffstat (limited to 'tests/parseExpr.test')
-rw-r--r--tests/parseExpr.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/parseExpr.test b/tests/parseExpr.test
index fda25b7..47dbec5 100644
--- a/tests/parseExpr.test
+++ b/tests/parseExpr.test
@@ -1044,9 +1044,8 @@ test parseExpr-22.13 {Bug 3401704} -constraints testexprparser -body {
} -result {- {} 0 subexpr naner() 1 operator naner 0 {}}
test parseExpr-22.14 {Bug 3401704} -constraints testexprparser -body {
- catch {testexprparser 08 -1} m o
- dict get $o -errorcode
-} -result {TCL PARSE EXPR BADNUMBER OCTAL}
+ testexprparser 07 -1
+} -result {- {} 0 subexpr 07 1 text 07 0 {}}
test parseExpr-22.15 {Bug 3401704} -constraints testexprparser -body {
catch {testexprparser 0o8 -1} m o
dict get $o -errorcode