summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2020-10-26 10:53:29 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2020-10-26 10:53:29 (GMT)
commit31145f178e965c316eb97dcb24fe34779c6bd50e (patch)
treec0e528ff9b916f488ffb22ebb1495ed1279ae4a5 /tests
parent861d8f512fd6d21d600999faa12dde6bd363bef0 (diff)
downloadtcl-31145f178e965c316eb97dcb24fe34779c6bd50e.zip
tcl-31145f178e965c316eb97dcb24fe34779c6bd50e.tar.gz
tcl-31145f178e965c316eb97dcb24fe34779c6bd50e.tar.bz2
Copied man page and test from Androwish https://www.androwish.org/home/ci/bc8b7e8094b66169
Diffstat (limited to 'tests')
-rw-r--r--tests/binary.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test
index cf3195f..501ec0d 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -759,7 +759,16 @@ test binary-21.12 {Tcl_BinaryObjCmd: scan} -setup {
} -body {
list [binary scan "abc def \x00ghi " A* arg1] $arg1
} -result [list 1 "abc def \x00ghi"]
-
+test binary-21.13 {Tcl_BinaryObjCmd: scan} -setup {
+ unset -nocomplain arg1
+} -body {
+ list [binary scan "abc def \x00 " C* arg1] $arg1
+} -result {1 {abc def }}
+test binary-21.12 {Tcl_BinaryObjCmd: scan} -setup {
+ unset -nocomplain arg1
+} -body {
+ list [binary scan "abc def \x00ghi" C* arg1] $arg1
+} -result {1 {abc def }}
test binary-22.1 {Tcl_BinaryObjCmd: scan} -returnCodes error -body {
binary scan abc b
} -result {not enough arguments for all format specifiers}