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