summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-02 11:27:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-02 11:27:10 (GMT)
commit635dd1a69689dbc6054b475fd4d15c92aa59dfd4 (patch)
tree445b9fad5b512967998f301849bbd8139bc7e7c7
parent25b3cffdd2b616b796b57e6f6766456cfb6ce8e7 (diff)
downloadtcl-635dd1a69689dbc6054b475fd4d15c92aa59dfd4.zip
tcl-635dd1a69689dbc6054b475fd4d15c92aa59dfd4.tar.gz
tcl-635dd1a69689dbc6054b475fd4d15c92aa59dfd4.tar.bz2
Fix utf32 lables in testcases (some not necessary any more, one missing), indicating differences between Tcl 8.x and 9.0
-rw-r--r--tests/encoding.test22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index a87cd24..89209d0 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -43,7 +43,7 @@ testConstraint testgetencpath [llength [info commands testgetencpath]]
testConstraint fullutf [expr {[format %c 0x010000] ne "\uFFFD"}]
testConstraint utf32 [expr {[testConstraint fullutf]
&& [string length [format %c 0x10000]] == 1}]
-
+
# TclInitEncodingSubsystem is tested by the rest of this file
# TclFinalizeEncodingSubsystem is not currently tested
@@ -353,55 +353,55 @@ test encoding-15.6 {UtfToUtfProc emoji character output} utf32 {
binary scan $y H* z
list [string length $y] $z
} {12 edb882eda0bdedb882eda0bd}
-test encoding-15.7 {UtfToUtfProc emoji character output} utf32 {
+test encoding-15.7 {UtfToUtfProc emoji character output} {
set x \uDE02\uD83D\uD83D
set y [encoding convertto -nocomplain utf-8 \uDE02\uD83D\uD83D]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {3 9 edb882eda0bdeda0bd}
-test encoding-15.8 {UtfToUtfProc emoji character output} utf32 {
+test encoding-15.8 {UtfToUtfProc emoji character output} {
set x \uDE02\uD83Dé
set y [encoding convertto -nocomplain utf-8 \uDE02\uD83Dé]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {3 8 edb882eda0bdc3a9}
-test encoding-15.9 {UtfToUtfProc emoji character output} utf32 {
+test encoding-15.9 {UtfToUtfProc emoji character output} {
set x \uDE02\uD83DX
set y [encoding convertto -nocomplain utf-8 \uDE02\uD83DX]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {3 7 edb882eda0bd58}
-test encoding-15.10 {UtfToUtfProc high surrogate character output} utf32 {
+test encoding-15.10 {UtfToUtfProc high surrogate character output} {
set x \uDE02é
set y [encoding convertto -nocomplain utf-8 \uDE02é]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {2 5 edb882c3a9}
-test encoding-15.11 {UtfToUtfProc low surrogate character output} utf32 {
+test encoding-15.11 {UtfToUtfProc low surrogate character output} {
set x \uDA02é
set y [encoding convertto -nocomplain utf-8 \uDA02é]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {2 5 eda882c3a9}
-test encoding-15.12 {UtfToUtfProc high surrogate character output} utf32 {
+test encoding-15.12 {UtfToUtfProc high surrogate character output} {
set x \uDE02Y
set y [encoding convertto -nocomplain utf-8 \uDE02Y]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {2 4 edb88259}
-test encoding-15.13 {UtfToUtfProc low surrogate character output} utf32 {
+test encoding-15.13 {UtfToUtfProc low surrogate character output} {
set x \uDA02Y
set y [encoding convertto -nocomplain utf-8 \uDA02Y]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {2 4 eda88259}
-test encoding-15.14 {UtfToUtfProc high surrogate character output} utf32 {
+test encoding-15.14 {UtfToUtfProc high surrogate character output} {
set x \uDE02
set y [encoding convertto -nocomplain utf-8 \uDE02]
binary scan $y H* z
list [string length $x] [string length $y] $z
} {1 3 edb882}
-test encoding-15.15 {UtfToUtfProc low surrogate character output} utf32 {
+test encoding-15.15 {UtfToUtfProc low surrogate character output} {
set x \uDA02
set y [encoding convertto -nocomplain utf-8 \uDA02]
binary scan $y H* z
@@ -707,7 +707,7 @@ test encoding-24.33 {Try to generate invalid utf-8 with -strict} -body {
test encoding-24.34 {Try to generate invalid utf-8 with -nocomplain} -body {
encoding convertto -nocomplain utf-8 \uFFFF
} -result \xEF\xBF\xBF
-test encoding-24.35 {Parse invalid utf-8} -body {
+test encoding-24.35 {Parse invalid utf-8} -constraints utf32 -body {
encoding convertfrom utf-8 \xED\xA0\x80
} -result \uD800
test encoding-24.36 {Parse invalid utf-8 with -strict} -body {