summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-10-27 15:39:11 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-10-27 15:39:11 (GMT)
commit92c681aa2eddf84cf71f8d3debd36a6d452be888 (patch)
tree9edf4167cc20c7609343bf8cb87d71e5789b4249 /tests
parent4955bdc67b8a5c3d9d12cf70cfe0b73c8a4f4ca8 (diff)
downloadtcl-92c681aa2eddf84cf71f8d3debd36a6d452be888.zip
tcl-92c681aa2eddf84cf71f8d3debd36a6d452be888.tar.gz
tcl-92c681aa2eddf84cf71f8d3debd36a6d452be888.tar.bz2
backport fixes for 868489 and 1026125
Diffstat (limited to 'tests')
-rw-r--r--tests/format.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/format.test b/tests/format.test
index 487f6c5..6338d0c 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.4 2003/05/14 23:01:56 dkf Exp $
+# RCS: @(#) $Id: format.test,v 1.11.2.5 2004/10/27 15:39:36 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -535,6 +535,14 @@ test format-18.2 {do not demote existing numeric values} {wideIntExpressions} {
list [catch {format %08x $a} msg] $msg [expr {$a == $b}]
} {1 {integer value too large to represent} 1}
+test format-19.1 {
+ regression test - tcl-core message by Brian Griffin on
+ 26 0ctober 2004
+} {
+ set x 0x8fedc654
+ list [expr { ~ $x }] [format %08x [expr { ~$x }]]
+} {-2414724693 701239ab}
+
# cleanup
catch {unset a}
catch {unset b}