diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clock.test | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/clock.test b/tests/clock.test index 776586b..c96c2e7 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.16 2001/07/03 20:48:38 mdejong Exp $ +# RCS: @(#) $Id: clock.test,v 1.17 2001/10/18 20:20:28 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -418,7 +418,16 @@ test clock-7.3 {clock scan next monthname} { -format %m.%Y } "05.2001" +# We use 5am PST, 31-12-1999 as the base for these scans because irrespective +# of your local timezone it should always give us times on December 31 +set 5amPST 946645200 +test clock-8.1 {clock scan midnight/gmt range bug 413397} { + set fmt "%m/%d" + list [clock format [clock scan year -base $5amPST -gmt 0] -format $fmt] \ + [clock format [clock scan year -base $5amPST -gmt 1] -format $fmt] +} {12/31 12/31} + + # cleanup ::tcltest::cleanupTests return - |