diff options
author | ericm <ericm> | 2000-01-12 23:35:52 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-01-12 23:35:52 (GMT) |
commit | d5177d8145a932d9140ebaee920a18ec2c5bb020 (patch) | |
tree | b9130323ee0536df2dfdab8df7769e34e44c27a0 /tests | |
parent | 85c2e86dee67763530bff5f6e74d349cf03cd50c (diff) | |
download | tcl-d5177d8145a932d9140ebaee920a18ec2c5bb020.zip tcl-d5177d8145a932d9140ebaee920a18ec2c5bb020.tar.gz tcl-d5177d8145a932d9140ebaee920a18ec2c5bb020.tar.bz2 |
* tests/clock.test: Added tests for "next <day-of-week>" and
"<day-of-week>"
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} { |