diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clock.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index fd97091..53eb63d 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.6 2000/01/12 19:36:42 ericm Exp $ +# RCS: @(#) $Id: clock.test,v 1.7 2000/01/12 23:35:52 ericm Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -257,6 +257,22 @@ test clock-4.32 {clock scan, relative minutes} { test clock-4.33 {clock scan, relative minutes} { clock scan "now -1 minute" -base 946627200 } 946627140 +test clock-4.34 {clock scan, day of week} { + clock format [clock scan "wednesday" -base [clock scan 20000112]] \ + -format {%b %d, %Y} +} "Jan 12, 2000" +test clock-4.35 {clock scan, next day of week} { + clock format [clock scan "next wednesday" -base [clock scan 20000112]] \ + -format {%b %d, %Y} +} "Jan 19, 2000" +test clock-4.36 {clock scan, day of week} { + clock format [clock scan "thursday" -base [clock scan 20000112]] \ + -format {%b %d, %Y} +} "Jan 13, 2000" +test clock-4.37 {clock scan, next day of week} { + clock format [clock scan "next thursday" -base [clock scan 20000112]] \ + -format {%b %d, %Y} +} "Jan 20, 2000" # clock seconds test clock-5.1 {clock seconds tests} { |