summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authorhershey <hershey>1999-04-29 18:14:29 (GMT)
committerhershey <hershey>1999-04-29 18:14:29 (GMT)
commitb069872348a67599dd626cf695fda15eab91fe02 (patch)
tree66f1990f9cbd25c9ecefcc1120aa3698301955e3 /tests/string.test
parent504fb9ec09216d951cf9c2c055611322fc9e1d68 (diff)
downloadtcl-b069872348a67599dd626cf695fda15eab91fe02.zip
tcl-b069872348a67599dd626cf695fda15eab91fe02.tar.gz
tcl-b069872348a67599dd626cf695fda15eab91fe02.tar.bz2
Added tests for string toupper and string tolower called with badly formed
Utf strings.
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 641b8c2..5efcdbc 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.3 1999/04/16 00:47:34 stanton Exp $
+# RCS: @(#) $Id: string.test,v 1.4 1999/04/29 18:14:29 hershey Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -309,6 +309,9 @@ test string-11.4 {string tolower} {
test string-11.5 {string tolower} {
list [catch {string tolower a b} msg] $msg
} {1 {wrong # args: should be "string tolower string"}}
+test string-11.6 {string tolower called with badly formed Utf string} {
+ string tolower [bytestring "\u00fcBER"]
+} [bytestring "\u00fcber"]
test string-12.1 {string toupper} {
string toupper abCDEf
@@ -325,6 +328,9 @@ test string-12.4 {string toupper} {
test string-12.5 {string toupper} {
list [catch {string toupper a b} msg] $msg
} {1 {wrong # args: should be "string toupper string"}}
+test string-12.6 {string toupper called with badly formed Utf string} {
+ string toupper [bytestring "\u00fcber"]
+} [bytestring "\u00fcBER"]
test string-13.1 {string wordend} {
list [catch {string wordend a} msg] $msg