summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhershey <hershey>1999-04-30 16:22:24 (GMT)
committerhershey <hershey>1999-04-30 16:22:24 (GMT)
commitb81b15c0f284194a10d17be0a8daa622ec578d94 (patch)
tree493586685f7abaad6ae4828c1b4297c6122d5ef7 /tests
parentb069872348a67599dd626cf695fda15eab91fe02 (diff)
downloadtcl-b81b15c0f284194a10d17be0a8daa622ec578d94.zip
tcl-b81b15c0f284194a10d17be0a8daa622ec578d94.tar.gz
tcl-b81b15c0f284194a10d17be0a8daa622ec578d94.tar.bz2
Tcl_UtfToUpper and Tcl_UtfToTitle now works on badly formed Utf strings.
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 5efcdbc..1648dc4 100644
--- a/tests/string.test
+++ b/tests/string.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: string.test,v 1.4 1999/04/29 18:14:29 hershey Exp $
+# RCS: @(#) $Id: string.test,v 1.5 1999/04/30 16:22:25 hershey Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -313,6 +313,25 @@ test string-11.6 {string tolower called with badly formed Utf string} {
string tolower [bytestring "\u00fcBER"]
} [bytestring "\u00fcber"]
+test string-11.7 {string totitle} {
+ string totitle ABCDeF
+} {Abcdef}
+test string-11.8 {string totitle} {
+ string totitle "aBC d Hij xyZ"
+} {Abc d hij xyz}
+test string-11.9 {string totitle} {
+ string totitle {123#$&*()}
+} {123#$&*()}
+test string-11.10 {string totitle} {
+ list [catch {string totitle} msg] $msg
+} {1 {wrong # args: should be "string totitle string"}}
+test string-11.11 {string totitle} {
+ list [catch {string totitle a b} msg] $msg
+} {1 {wrong # args: should be "string totitle string"}}
+test string-11.12 {string totitle called with badly formed Utf string} {
+ string totitle [bytestring "\u00fcBER"]
+} [bytestring "\u00fcber"]
+
test string-12.1 {string toupper} {
string toupper abCDEf
} {ABCDEF}