summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhershey <hershey@noemail.net>1999-04-30 16:22:24 (GMT)
committerhershey <hershey@noemail.net>1999-04-30 16:22:24 (GMT)
commit0a20d911e0b81832d173ea7e07c079875292de0b (patch)
tree493586685f7abaad6ae4828c1b4297c6122d5ef7 /tests
parente47f3e12b1e007abfc1f3a7293839d58b4ab7ad6 (diff)
downloadtcl-0a20d911e0b81832d173ea7e07c079875292de0b.zip
tcl-0a20d911e0b81832d173ea7e07c079875292de0b.tar.gz
tcl-0a20d911e0b81832d173ea7e07c079875292de0b.tar.bz2
Tcl_UtfToUpper and Tcl_UtfToTitle now works on badly formed Utf strings.
FossilOrigin-Name: 8cc1ac50959e95dfd19aa8aa799da4e92c157553
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}