summaryrefslogtreecommitdiffstats
path: root/tests/parseExpr.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-08 17:21:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-08 17:21:09 (GMT)
commit40b3d4d5dd32bfe69a1f7771c6aa470265aa06bf (patch)
tree52d58782baa2eebc5da6fa970beeffc04d03f4d4 /tests/parseExpr.test
parentd60bc321ce3c20557744e9e4ac1d5ae45f0d7ee3 (diff)
parentb7efdfe9bc03114b633073ed9d4423e4f88582c5 (diff)
downloadtcl-40b3d4d5dd32bfe69a1f7771c6aa470265aa06bf.zip
tcl-40b3d4d5dd32bfe69a1f7771c6aa470265aa06bf.tar.gz
tcl-40b3d4d5dd32bfe69a1f7771c6aa470265aa06bf.tar.bz2
TIP 582: Comments in Expressions
Diffstat (limited to 'tests/parseExpr.test')
-rw-r--r--tests/parseExpr.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/parseExpr.test b/tests/parseExpr.test
index 8b5e429..735dace 100644
--- a/tests/parseExpr.test
+++ b/tests/parseExpr.test
@@ -1075,6 +1075,14 @@ test parseExpr-22.21 {Bug d2ffcca163} -constraints testexprparser -body {
testexprparser in\u0433(0) -1
} -returnCodes error -match glob -result {missing operand*}
+test parseExpr-23.1 {TIP 582: comments} -constraints testexprparser -body {
+ testexprparser "7 # * 8 " -1
+} -result {- {} 0 subexpr 7 1 text 7 0 {}}
+test parseExpr-23.2 {TIP 582: comments} -constraints testexprparser -body {
+ testexprparser "7 #\n* 8 " -1
+} -result {- {} 0 subexpr {7 #
+*} 5 operator # 0 subexpr 7 1 text 7 0 subexpr * 1 text * 0 {}}
+
# cleanup
cleanupTests
return