summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-04 13:56:37 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-04 13:56:37 (GMT)
commitf740197ce220d1842b0a408a30031c150b54db0c (patch)
tree85adf71928ce31288bb2fed800ac1caa4010064b /tests/expr.test
parentb33be65e4a3a29aae1ef59d24db32aff7dcb84ab (diff)
downloadtcl-f740197ce220d1842b0a408a30031c150b54db0c.zip
tcl-f740197ce220d1842b0a408a30031c150b54db0c.tar.gz
tcl-f740197ce220d1842b0a408a30031c150b54db0c.tar.bz2
Stop words starting with 'eq' or 'ne' from being subdivided by the expression
parser. [Bug 884830]
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 4cfa615..4cc644e 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.27 2004/09/26 16:36:05 msofer Exp $
+# RCS: @(#) $Id: expr.test,v 1.28 2004/10/04 13:56:37 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -314,6 +314,14 @@ test expr-8.21 {CompileBitAndExpr: error in equality expr} {
catch {expr a eq b} msg
set msg
} {syntax error in expression "a eq b": variable references require preceding $}
+test expr-8.22 {CompileBitAndExpr: error in equality expr} {
+ catch {expr {false eqfalse}} msg
+ set msg
+} {syntax error in expression "false eqfalse": extra tokens at end of expression}
+test expr-8.23 {CompileBitAndExpr: error in equality expr} {
+ catch {expr {false nefalse}} msg
+ set msg
+} {syntax error in expression "false nefalse": extra tokens at end of expression}
test expr-9.1 {CompileRelationalExpr: just shift expr} {expr 3<<2} 12
test expr-9.2 {CompileRelationalExpr: just shift expr} {expr 0xff>>2} 63