summaryrefslogtreecommitdiffstats
path: root/tests/parseExpr.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-12-05 12:28:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-12-05 12:28:01 (GMT)
commitbc8ffb392220e949c4aadbe13d7b97912a7ea7ab (patch)
tree94c5a2756c009d91338f8ee894ae0122dd4f35e9 /tests/parseExpr.test
parentbff00baca2d262fe129758037163387e65b99b46 (diff)
parentbfb321eb38ad0ef45285f0637c865cf701949b90 (diff)
downloadtcl-bc8ffb392220e949c4aadbe13d7b97912a7ea7ab.zip
tcl-bc8ffb392220e949c4aadbe13d7b97912a7ea7ab.tar.gz
tcl-bc8ffb392220e949c4aadbe13d7b97912a7ea7ab.tar.bz2
[d2ffcca163] Limit parsing results that are documented to accept only ASCII chars to actually follow that constraint. This requires not trusting isalnum(.) and isalpha(.) to deliver portable identical results.
Diffstat (limited to 'tests/parseExpr.test')
-rw-r--r--tests/parseExpr.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/parseExpr.test b/tests/parseExpr.test
index 5c7986a..ef05454 100644
--- a/tests/parseExpr.test
+++ b/tests/parseExpr.test
@@ -1064,6 +1064,15 @@ test parseExpr-22.18 {Bug 3401704} -constraints testexprparser -body {
dict get $o -errorcode
} -result {TCL PARSE EXPR BADNUMBER BINARY}
+test parseExpr-22.19 {Bug d2ffcca163} -constraints testexprparser -body {
+ testexprparser \u0433 -1
+} -returnCodes error -match glob -result {*invalid character*}
+test parseExpr-22.20 {Bug d2ffcca163} -constraints testexprparser -body {
+ testexprparser \u043f -1
+} -returnCodes error -match glob -result {*invalid character*}
+test parseExpr-22.21 {Bug d2ffcca163} -constraints testexprparser -body {
+ testexprparser in\u0433(0) -1
+} -returnCodes error -match glob -result {missing operand*}
# cleanup
cleanupTests