summaryrefslogtreecommitdiffstats
path: root/tests/append.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-09 06:36:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-09 06:36:45 (GMT)
commit7bb103b64e67ebad946e01122755068083296f66 (patch)
tree7229ceb914f43fc3fb2ac9faf80580342f000f8a /tests/append.test
parentee577ebd90b47d4ab597370cfd5c8e7f4a09cb7b (diff)
downloadtcl-7bb103b64e67ebad946e01122755068083296f66.zip
tcl-7bb103b64e67ebad946e01122755068083296f66.tar.gz
tcl-7bb103b64e67ebad946e01122755068083296f66.tar.bz2
More test-cases, involving \xC0 \x80
Diffstat (limited to 'tests/append.test')
-rw-r--r--tests/append.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/append.test b/tests/append.test
index f26925f..057410a 100644
--- a/tests/append.test
+++ b/tests/append.test
@@ -61,10 +61,22 @@ test append-3.5 {append surrogates} -body {
set x \uD83D
set x $x\uDE02
} -result \uD83D\uDE02
-test append-3.5 {append surrogates} -body {
+test append-3.6 {append surrogates} -body {
set x \uDE02
set x \uD83D$x
} -result \uD83D\uDE02
+test append-3.7 {append \xC0 \x80} -body {
+ set x [testbytestring \xC0]
+ string length [append x [testbytestring \x80]]
+} -result 2
+test append-3.8 {append \xC0 \x80} -body {
+ set x [testbytestring \xC0]
+ string length $x[testbytestring \x80]
+} -result 2
+test append-3.9 {append \xC0 \x80} -body {
+ set x [testbytestring \x80]
+ string length [testbytestring \xC0]$x
+} -result 2
test append-4.1 {lappend command} {
unset -nocomplain x