summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-01-10 16:09:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-01-10 16:09:22 (GMT)
commitc1ca08db8c81d3993594cb75b7ff33a35a9bd321 (patch)
tree4725991e79f7264b8778b2cad167b022eb6f19e6 /tests
parent6adf6fbdbe0e957b34ece292a0c4dfa88a7c4c92 (diff)
downloadtcl-c1ca08db8c81d3993594cb75b7ff33a35a9bd321.zip
tcl-c1ca08db8c81d3993594cb75b7ff33a35a9bd321.tar.gz
tcl-c1ca08db8c81d3993594cb75b7ff33a35a9bd321.tar.bz2
* generic/tclStringObj.c (Tcl_AppendFormatToObj): Correct failure to
* tests/format.test: account for big.used == 0 corner case in the %ll(idox) format directives. [Bug 1867855].
Diffstat (limited to 'tests')
-rw-r--r--tests/format.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/format.test b/tests/format.test
index 321f52f..b050fc3 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.24 2006/03/21 11:12:29 dkf Exp $
+# RCS: @(#) $Id: format.test,v 1.25 2008/01/10 16:09:23 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -553,6 +553,10 @@ test format-19.1 {
list [expr { ~ $x }] [format %08x [expr { ~$x }]]
} -match regexp -result {-2414724693 f*701239ab}
+test format-19.2 {Bug 1867855} {
+ format %llx 0
+} 0
+
# cleanup
catch {unset a}
catch {unset b}