summaryrefslogtreecommitdiffstats
path: root/tests/binary.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-09-27 15:35:50 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-09-27 15:35:50 (GMT)
commit3eb8e1f8c787fcdebda1ee637b8d1710cac1c04f (patch)
tree90b6bf9b977a995610c825d5fa2f23ba0708449f /tests/binary.test
parentc74f4731fc28ed1f711180d4937bc2ea040fa85b (diff)
downloadtcl-3eb8e1f8c787fcdebda1ee637b8d1710cac1c04f.zip
tcl-3eb8e1f8c787fcdebda1ee637b8d1710cac1c04f.tar.gz
tcl-3eb8e1f8c787fcdebda1ee637b8d1710cac1c04f.tar.bz2
Test for [Bug 1116542]
Diffstat (limited to 'tests/binary.test')
-rw-r--r--tests/binary.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test
index 26444f7..2bd3169 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.23 2005/08/24 15:15:46 kennykb Exp $
+# RCS: @(#) $Id: binary.test,v 1.24 2005/09/27 15:35:50 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -528,6 +528,10 @@ test binary-14.17 {Tcl_BinaryObjCmd: format} littleEndian {
set a {1.6 3.4}
binary format d1 $a
} \x9a\x99\x99\x99\x99\x99\xf9\x3f
+test binary-14.18 {FormatNumber: Bug 1116542} {
+ binary scan [binary format d 1.25] d w
+ set w
+} 1.25
test binary-15.1 {Tcl_BinaryObjCmd: format} {
list [catch {binary format ax*a "y" "z"} msg] $msg