summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-09-08 18:46:17 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-09-08 18:46:17 (GMT)
commit650847f3b6562e21662bff6f2eefea5bfb2628d1 (patch)
treee15fc5c8dd8792a5d76e1119e59a7a86383b7d7b /tests/clock.test
parent40ab3bd07ca11069b583be7177eea10c9c1986ec (diff)
downloadtcl-650847f3b6562e21662bff6f2eefea5bfb2628d1.zip
tcl-650847f3b6562e21662bff6f2eefea5bfb2628d1.tar.gz
tcl-650847f3b6562e21662bff6f2eefea5bfb2628d1.tar.bz2
* compat/strftime.c (_conv): Corrected a problem where hour 0
would format as a blank format group with %k. * tests/clock.test (clock-41.1): Added regression test case for %k at the zero hour.
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 4057aa2..acb7a6e 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: clock.test,v 1.42 2004/09/08 15:55:43 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.43 2004/09/08 18:46:18 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -35257,6 +35257,10 @@ test clock-40.1 {regression - bad month with -timezone :localtime} \
} \
-result {0}
+test clock-41.1 {regression test - format group %k when hour is 0 } {
+ clock format 0 -format %k -gmt true
+} { 0}
+
# cleanup
namespace delete ::testClock