summaryrefslogtreecommitdiffstats
path: root/tests/format.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/format.test')
-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}