summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-12-06 10:59:17 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-12-06 10:59:17 (GMT)
commit6425a01b7a2896172c65f9883f0b56792a6fd263 (patch)
treee6c39593e08b79465eac7aa0dd4828dc16e96440 /tests/compile.test
parent5c1a1598d524e7cdba42a48aef9949ffd3802fd6 (diff)
downloadtcl-6425a01b7a2896172c65f9883f0b56792a6fd263.zip
tcl-6425a01b7a2896172c65f9883f0b56792a6fd263.tar.gz
tcl-6425a01b7a2896172c65f9883f0b56792a6fd263.tar.bz2
More expr syntax error improvements
Diffstat (limited to 'tests/compile.test')
-rw-r--r--tests/compile.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compile.test b/tests/compile.test
index 72024b8..03f8295 100644
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compile.test,v 1.16 2001/12/04 15:36:29 dkf Exp $
+# RCS: @(#) $Id: compile.test,v 1.17 2001/12/06 10:59:17 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -230,11 +230,11 @@ test compile-11.6 {Tcl_Append*: ensure Tcl_ResetResult is used properly} {
test compile-11.7 {Tcl_Append*: ensure Tcl_ResetResult is used properly} {
proc p {} { set r [list foobar] ; expr !a }
list [catch {p} msg] $msg
-} {1 {syntax error in expression "!a": expected a parenthesis enclosing function arguments}}
+} {1 {syntax error in expression "!a": variable references require preceding $}}
test compile-11.8 {Tcl_Append*: ensure Tcl_ResetResult is used properly} {
proc p {} { set r [list foobar] ; expr {!a} }
list [catch {p} msg] $msg
-} {1 {syntax error in expression "!a": expected a parenthesis enclosing function arguments}}
+} {1 {syntax error in expression "!a": variable references require preceding $}}
test compile-11.9 {Tcl_Append*: ensure Tcl_ResetResult is used properly} {
proc p {} { set r [list foobar] ; llength "\{" }
list [catch {p} msg] $msg