summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2008-09-29 08:19:47 (GMT)
committerdkf <dkf@noemail.net>2008-09-29 08:19:47 (GMT)
commitfa09da34cb4129162b31d1aa846425b43a3b6dc1 (patch)
treee3ea31ba18eb44f2434272cab18a17e5c8d339ce /tests/string.test
parent700be0bbd0e1262fe45f2458c0b0addbc4567f11 (diff)
downloadtcl-fa09da34cb4129162b31d1aa846425b43a3b6dc1.zip
tcl-fa09da34cb4129162b31d1aa846425b43a3b6dc1.tar.gz
tcl-fa09da34cb4129162b31d1aa846425b43a3b6dc1.tar.bz2
Implement TIP 318.
FossilOrigin-Name: d30b2626749acd21b1e9b14605fcf5de1bb61f50
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 64ec56f..c2ddfc8 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -12,7 +12,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.73 2008/07/19 22:50:38 nijtmans Exp $
+# RCS: @(#) $Id: string.test,v 1.74 2008/09/29 08:20:38 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1407,6 +1407,9 @@ test string-18.10 {string trim} {
test string-18.11 {string trim, unicode} {
string trim "\xe7\xe8 AB\xe7C \xe8\xe7" \xe7\xe8
} " AB\xe7C "
+test string-18.12 {string trim, unicode default} {
+ string trim ABC\u1361\u1680\u3000
+} ABC
test string-19.1 {string trimleft} {
list [catch {string trimleft} msg] $msg
@@ -1414,6 +1417,9 @@ test string-19.1 {string trimleft} {
test string-19.2 {string trimleft} {
string trimleft " XYZ "
} {XYZ }
+test string-19.3 {string trimleft, unicode default} {
+ string trimleft \u1361\u1680\u3000ABC
+} ABC
test string-20.1 {string trimright errors} {
list [catch {string trimright} msg] $msg
@@ -1430,6 +1436,9 @@ test string-20.4 {string trimright} {
test string-20.5 {string trimright} {
string trimright ""
} {}
+test string-20.6 {string trimright, unicode default} {
+ string trimright ABC\u1361\u1680\u3000
+} ABC
test string-21.1 {string wordend} {
list [catch {string wordend a} msg] $msg