summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 22:02:10 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 22:02:10 (GMT)
commitf70ebac8b8c9c01999150364b4155b0d50911cbc (patch)
tree7ee977c045032f7763000f522709ce2999cb2dad /tests
parent980f0e3d6b56fbddec0b97988c695f912caa5082 (diff)
downloadtcl-f70ebac8b8c9c01999150364b4155b0d50911cbc.zip
tcl-f70ebac8b8c9c01999150364b4155b0d50911cbc.tar.gz
tcl-f70ebac8b8c9c01999150364b4155b0d50911cbc.tar.bz2
[temp-commit]: ClockFreeScan ready, test case passed (2 failure because of wrong :localtime zone by TZ-switch, to be fixed)
Diffstat (limited to 'tests')
-rw-r--r--tests/clock.test12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 6a0fecd..ecc6f5f 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -35662,7 +35662,7 @@ test clock-34.8 {clock scan tests} {
} {Oct 23,1992 15:00 GMT}
test clock-34.9 {clock scan tests} {
list [catch {clock scan "Jan 12" -bad arg} msg] $msg
-} {1 {bad option "-bad", must be -base, -format, -gmt, -locale or -timezone}}
+} {1 {bad option "-bad": must be -format, -gmt, -locale, -timezone, or -base}}
# The following two two tests test the two year date policy
test clock-34.10 {clock scan tests} {
set time [clock scan "1/1/71" -gmt true]
@@ -35672,7 +35672,15 @@ test clock-34.11 {clock scan tests} {
set time [clock scan "1/1/37" -gmt true]
clock format $time -format {%b %d,%Y %H:%M GMT} -gmt true
} {Jan 01,2037 00:00 GMT}
-
+test clock-34.11.1 {clock scan tests: same century switch} {
+ set times [clock scan "1/1/37" -gmt true]
+} [clock scan "1/1/37" -format "%m/%d/%y" -gmt true]
+test clock-34.11.2 {clock scan tests: same century switch} {
+ set times [clock scan "1/1/38" -gmt true]
+} [clock scan "1/1/38" -format "%m/%d/%y" -gmt true]
+test clock-34.11.3 {clock scan tests: same century switch} {
+ set times [clock scan "1/1/39" -gmt true]
+} [clock scan "1/1/39" -format "%m/%d/%y" -gmt true]
test clock-34.12 {clock scan, relative times} {
set time [clock scan "Oct 23, 1992 -1 day"]
clock format $time -format {%b %d, %Y}