summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-03-14 23:19:41 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-03-14 23:19:41 (GMT)
commit08628390c9b64e3511cbe748f88fa3d0981340af (patch)
tree6dcd70ef0fb01765d6586612b32247fee956a7e3 /tests
parent37b071822e9114402fad00286766aa23e420aae1 (diff)
downloadtcl-08628390c9b64e3511cbe748f88fa3d0981340af.zip
tcl-08628390c9b64e3511cbe748f88fa3d0981340af.tar.gz
tcl-08628390c9b64e3511cbe748f88fa3d0981340af.tar.bz2
Made format less keen on converting numeric types. [Bug #699060]
Diffstat (limited to 'tests')
-rw-r--r--tests/format.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/format.test b/tests/format.test
index 7374b46..423c476 100644
--- a/tests/format.test
+++ b/tests/format.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: format.test,v 1.11.2.1 2003/03/14 16:19:13 dkf Exp $
+# RCS: @(#) $Id: format.test,v 1.11.2.2 2003/03/14 23:19:45 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -504,6 +504,13 @@ test format-17.3 {testing %ld with non-wide} {64bitInts} {
test format-17.4 {testing %l with non-integer} {
format %lf 1
} 1.000000
+test format-17.5 {type conversions with wides} {
+ set a 0xAAAAAAAA ;# NB: Careful to make separate objects here!
+ set b 0xAAAAAAA; append b A
+ set result [expr {$a == $b}]
+ format %x $a
+ lappend result [expr {$a == $b}]
+} {1 1}
# cleanup
catch {unset a}