summaryrefslogtreecommitdiffstats
path: root/tests/parse.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-11-07 13:59:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-11-07 13:59:27 (GMT)
commit4ec954d30638d7601c2f884c6a70f30ebab5ac11 (patch)
tree32c62ce0f31df1e15fc51664895207715c0300ed /tests/parse.test
parent6e42c4bf10f4e275c5ae106296110a3584b4a070 (diff)
downloadtcl-4ec954d30638d7601c2f884c6a70f30ebab5ac11.zip
tcl-4ec954d30638d7601c2f884c6a70f30ebab5ac11.tar.gz
tcl-4ec954d30638d7601c2f884c6a70f30ebab5ac11.tar.bz2
Make sure all uses of the [testbytestring] command are constrained.
Diffstat (limited to 'tests/parse.test')
-rw-r--r--tests/parse.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/parse.test b/tests/parse.test
index fe6026d..4e3139c 100644
--- a/tests/parse.test
+++ b/tests/parse.test
@@ -303,8 +303,10 @@ test parse-6.16 {ParseTokens procedure, backslash substitution} testparser {
testparser {\n\a\x7f} 0
} {- {\n\a\x7f} 1 word {\n\a\x7f} 3 backslash {\n} 0 backslash {\a} 0 backslash {\x7f} 0 {}}
test parse-6.17 {ParseTokens procedure, null characters} {testparser testbytestring} {
- testparser [testbytestring "foo\0zz"] 0
-} "- [testbytestring foo\0zz] 1 word [testbytestring foo\0zz] 3 text foo 0 text [testbytestring \0] 0 text zz 0 {}"
+ expr {[testparser [testbytestring "foo\0zz"] 0] eq
+"- [testbytestring foo\0zz] 1 word [testbytestring foo\0zz] 3 text foo 0 text [testbytestring \0] 0 text zz 0 {}"
+ }
+} 1
test parse-6.18 {ParseTokens procedure, seek past numBytes for close-bracket} testparser {
# Test for Bug 681841
list [catch {testparser {[a]} 2} msg] $msg