summaryrefslogtreecommitdiffstats
path: root/tests/parseExpr.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-12-04 22:10:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-12-04 22:10:57 (GMT)
commit3041f3f9a1d8a242105ffe99eebae201a7079549 (patch)
treeca5b53d4a09396ccb6458f4999e411a421a36961 /tests/parseExpr.test
parent886a7575564f8e4e164cb67dff4554778650868e (diff)
parent640e5762bc7e0aa585f1135dde28e2fa9434e79e (diff)
downloadtcl-3041f3f9a1d8a242105ffe99eebae201a7079549.zip
tcl-3041f3f9a1d8a242105ffe99eebae201a7079549.tar.gz
tcl-3041f3f9a1d8a242105ffe99eebae201a7079549.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 c1c489b..c3b0d71 100644
--- a/tests/parseExpr.test
+++ b/tests/parseExpr.test
@@ -1051,6 +1051,15 @@ test parseExpr-22.18 {Bug 3401704} -constraints testexprparser -body {
testexprparser 0b02 -1
} -returnCodes error -match glob -result {*invalid binary number*}
+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