summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-03-13 03:15:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-03-13 03:15:28 (GMT)
commit23178bb2087e384cb320634e4974b3dc6104eb89 (patch)
tree876e2b05ca7e7dbd7a8d40fa60bc4e9a9f08f3c2 /tests/string.test
parent6c0170972f57e3d1daf5684c55eccfb2d78b386f (diff)
downloadtcl-23178bb2087e384cb320634e4974b3dc6104eb89.zip
tcl-23178bb2087e384cb320634e4974b3dc6104eb89.tar.gz
tcl-23178bb2087e384cb320634e4974b3dc6104eb89.tar.bz2
Tidy up and comment [string replace] and its corner cases.
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test
index 39abd86..f3bb366 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -1294,6 +1294,12 @@ test string-14.16 {string replace} {
test string-14.17 {string replace} {
string replace abcdefghijklmnop end end-1
} {abcdefghijklmnop}
+test string-14.18 {string replace} {
+ string replace abcdefghijklmnop 10 9 XXX
+} {abcdefghijklmnop}
+test string-14.19 {string replace} {
+ string replace {} -1 0 A
+} A
test string-15.1 {string tolower too few args} {
list [catch {string tolower} msg] $msg