aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-01-26 10:48:58 +1000
committerSteve Bennett <steveb@workware.net.au>2011-01-26 10:48:58 +1000
commit99792bb65fca43df81844dde3acc191c56ce47e3 (patch)
tree813d728b250894105258de5b2051cc38286f3085 /tests
parent15d4b5606abcd92748664c09aac744b207025567 (diff)
downloadjimtcl-99792bb65fca43df81844dde3acc191c56ce47e3.zip
jimtcl-99792bb65fca43df81844dde3acc191c56ce47e3.tar.gz
jimtcl-99792bb65fca43df81844dde3acc191c56ce47e3.tar.bz2
scan fails with strings containing nulls0.70
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests')
-rw-r--r--tests/scan.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scan.test b/tests/scan.test
index 0614d56..f936ee3 100644
--- a/tests/scan.test
+++ b/tests/scan.test
@@ -658,4 +658,16 @@ test scan-13.8 {Tcl_ScanObjCmd, inline XPG case lots of arguments} {
list [llength $msg] [lindex $msg 99] [lindex $msg 4] [lindex $msg 199]
} {200 10 20 30}
+test scan-14.1 {scan with null chars} {
+ scan a\0c %c%c%c
+} {97 0 99}
+
+test scan-14.2 {scan with null chars} {
+ scan \0\0c %c%c%c
+} {0 0 99}
+
+test scan-14.3 {scan with null chars} {
+ scan ab12x\0 %cb%dx%c
+} {97 12 0}
+
testreport