diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-03-14 23:19:41 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-03-14 23:19:41 (GMT) |
commit | d932fc4e68604d4877fca90b45537258f7ab3100 (patch) | |
tree | 6dcd70ef0fb01765d6586612b32247fee956a7e3 /tests/format.test | |
parent | cca3e3c842ce7be6eae3ace0eaadf8748c3ea20d (diff) | |
download | tcl-d932fc4e68604d4877fca90b45537258f7ab3100.zip tcl-d932fc4e68604d4877fca90b45537258f7ab3100.tar.gz tcl-d932fc4e68604d4877fca90b45537258f7ab3100.tar.bz2 |
Made format less keen on converting numeric types. [Bug #699060]
Diffstat (limited to 'tests/format.test')
-rw-r--r-- | tests/format.test | 9 |
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} |