summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2009-10-29 01:17:02 (GMT)
committerKevin B Kenny <kennykb@acm.org>2009-10-29 01:17:02 (GMT)
commit80ed2d3225fd713abeabba326c657ee9567dc1c5 (patch)
tree1f79a99a409364b549fb0de5a223bee7dd59781a /tests/clock.test
parent557786360893e144c08ad7342f414ff0720164bf (diff)
downloadtcl-80ed2d3225fd713abeabba326c657ee9567dc1c5.zip
tcl-80ed2d3225fd713abeabba326c657ee9567dc1c5.tar.gz
tcl-80ed2d3225fd713abeabba326c657ee9567dc1c5.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 bb284c4..86fad72 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.83.2.8 2009/10/27 03:24:17 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.83.2.9 2009/10/29 01:17:03 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