summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2009-10-29 01:17:54 (GMT)
committerKevin B Kenny <kennykb@acm.org>2009-10-29 01:17:54 (GMT)
commitd6e3f26a3c15aa9926fafac19a13388a9fae9367 (patch)
tree69ad1f8c77ef864732b188ee501ba3ca98ed5887 /tests/clock.test
parent78dd3b3955f6c2f710b83b1cbdde2aa96be2aecb (diff)
downloadtcl-d6e3f26a3c15aa9926fafac19a13388a9fae9367.zip
tcl-d6e3f26a3c15aa9926fafac19a13388a9fae9367.tar.gz
tcl-d6e3f26a3c15aa9926fafac19a13388a9fae9367.tar.bz2
* library/clock.tcl (LocalizeFormat):
* tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 51d5655..d5957bd 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.93 2009/10/27 03:23:32 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.94 2009/10/29 01:17:54 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -36746,6 +36746,10 @@ test clock-66.1 {clock scan, no date, never-before-seen timezone} {*}{
-result 1256572800
}
+test clock-67.1 {clock format, %% with a letter following [Bug 2819334]} {
+ clock format [clock seconds] -format %%r
+} %r
+
# cleanup
namespace delete ::testClock