aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-11-01 10:41:08 -0400
committerSteve Bennett <steveb@workware.net.au>2011-11-28 13:13:41 +1000
commitfbc62c271669a746eb4f0acbc2f156ba306365d4 (patch)
tree142b2b83dfac664bc87b83accd26e53f693a6d5e /tests
parent1e6e0d0351f8643ed08f88bd246bf8950c1d7fe1 (diff)
downloadjimtcl-fbc62c271669a746eb4f0acbc2f156ba306365d4.zip
jimtcl-fbc62c271669a746eb4f0acbc2f156ba306365d4.tar.gz
jimtcl-fbc62c271669a746eb4f0acbc2f156ba306365d4.tar.bz2
Add support for [string totitle]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test
index 5da52df..4cb54ac 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -770,6 +770,19 @@ test string-16.6 {string toupper} {
string toupper {123#$&*()}
} {123#$&*()}
+test string-17.1 {string totitle} -body {
+ string totitle
+} -returnCodes error -match glob -result {wrong # args: should be "string totitle string*}
+test string-17.3 {string totitle} {
+ string totitle abCDEf
+} {Abcdef}
+test string-17.4 {string totitle} {
+ string totitle "abc xYz"
+} {Abc xyz}
+test string-17.5 {string totitle} {
+ string totitle {123#$&*()}
+} {123#$&*()}
+
test string-18.1 {string trim} {
list [catch {string trim} msg]
} {1}