diff options
author | Kevin B Kenny <kennykb@acm.org> | 2004-11-30 15:45:03 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2004-11-30 15:45:03 (GMT) |
commit | 144b1b16e962181661e12d2c592f37b17e22278b (patch) | |
tree | 7bef60e9f5d590153c01c127558289e10061606f /tests | |
parent | ce4338e6397022547fddacab80018e21ae5773ef (diff) | |
download | tcl-144b1b16e962181661e12d2c592f37b17e22278b.zip tcl-144b1b16e962181661e12d2c592f37b17e22278b.tar.gz tcl-144b1b16e962181661e12d2c592f37b17e22278b.tar.bz2 |
* library/clock.tcl: Corrected the regular expressions that match
a time zone to allow for time zones specified as +HH or -HH.
* tests/clock.test: Added regression test case for the above issue.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clock.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/clock.test b/tests/clock.test index 9b29a73..b5c19fb 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -11,7 +11,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.51 2004/11/03 23:00:23 kennykb Exp $ +# RCS: @(#) $Id: clock.test,v 1.52 2004/11/30 15:45:04 kennykb Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -35369,7 +35369,11 @@ test clock-44.1 {regression test - time zone name containing hyphen } \ } \ -result {12:34:56-0500} - +test clock-45.1 {regression test - time zone containing only two digits} \ + -body { + clock scan 1985-04-12T10:15:30+04 -format %Y-%m-%dT%H:%M:%S%Z + } \ + -result 482134530 # cleanup |