summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-03-24 03:05:06 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-03-24 03:05:06 (GMT)
commitdcda62bfe7fdf1ef48ae87683185c8c69d544c30 (patch)
tree47ff6d4dd50a9a0444dd816f910165caefc82844 /tests
parent618436dece16c8fdb56fcac180ee7c52b4d49a92 (diff)
downloadtcl-dcda62bfe7fdf1ef48ae87683185c8c69d544c30.zip
tcl-dcda62bfe7fdf1ef48ae87683185c8c69d544c30.tar.gz
tcl-dcda62bfe7fdf1ef48ae87683185c8c69d544c30.tar.bz2
Backported fix for #1923966
Diffstat (limited to 'tests')
-rw-r--r--tests/binary.test20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test
index fb137db..d06907e 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: binary.test,v 1.11.2.4 2006/04/05 15:17:06 dgp Exp $
+# RCS: @(#) $Id: binary.test,v 1.11.2.5 2008/03/24 03:05:07 patthoyts Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -549,6 +549,24 @@ test binary-15.3 {Tcl_BinaryObjCmd: format} {
test binary-15.4 {Tcl_BinaryObjCmd: format} {
binary format a*X3x3a* "foo" "z"
} \x00\x00\x00z
+test binary-15.5 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x0s 1
+} \x01\x00
+test binary-15.6 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x0ss 1 1
+} \x01\x00\x01\x00
+test binary-15.5 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x0s 1
+} \x01\x00
+test binary-15.6 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x0ss 1 1
+} \x01\x00\x01\x00
+test binary-15.7 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x1s 1
+} \x00\x01\x00
+test binary-15.8 {Tcl_BinaryObjCmd: format - bug #1923966} {
+ binary format x1ss 1 1
+} \x00\x01\x00\x01\x00
test binary-16.1 {Tcl_BinaryObjCmd: format} {
binary format a*X*a "foo" "z"