diff options
author | Kevin B Kenny <kennykb@acm.org> | 2004-09-08 18:32:02 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2004-09-08 18:32:02 (GMT) |
commit | 70cac415298381ec7a3f978f729a0e0b97aec972 (patch) | |
tree | 411867877941d89f82151c47835cc302aa39023b /tests/clock.test | |
parent | a8f71a729447a54a46df56f612ef6380d2a5a459 (diff) | |
download | tcl-70cac415298381ec7a3f978f729a0e0b97aec972.zip tcl-70cac415298381ec7a3f978f729a0e0b97aec972.tar.gz tcl-70cac415298381ec7a3f978f729a0e0b97aec972.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.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index 2599dd7..6599218 100644 --- a/tests/clock.test +++ b/tests/clock.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: clock.test,v 1.22.2.5 2004/05/27 18:43:19 kennykb Exp $ +# RCS: @(#) $Id: clock.test,v 1.22.2.6 2004/09/08 18:32:20 kennykb Exp $ set env(LC_TIME) POSIX @@ -643,6 +643,10 @@ test clock-10.49 {ISO week-based calendar 2010-W02-1} {percentG} { clock format 1263168000 -format {%a %A %g %G %u %V %w} -gmt true; # 2010-1-11 } {Mon Monday 10 2010 1 02 1} +test clock-41.1 {regression test - format group %k when hour is 0 } { + clock format 0 -format %k -gmt true +} { 0} + # cleanup ::tcltest::cleanupTests return |