summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-20 09:42:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-20 09:42:26 (GMT)
commit7561bdb176677ac643786eb846f918403fc872b3 (patch)
treeb213cdd0a448c8d0de28e22f94d9c3f58720b133 /tests/encoding.test
parentd61473e631e6369735cee6487ee47eff5d690a1b (diff)
parentac4faee2328d37860ec958ec755508713cbf6ea7 (diff)
downloadtcl-7561bdb176677ac643786eb846f918403fc872b3.zip
tcl-7561bdb176677ac643786eb846f918403fc872b3.tar.gz
tcl-7561bdb176677ac643786eb846f918403fc872b3.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index a19357e..4dd2e98 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -704,18 +704,18 @@ test encoding-24.28 {Parse invalid utf-8 with -strict} -body {
test encoding-24.29 {Parse invalid utf-8} -body {
encoding convertfrom utf-8 \xEF\xBF\xBF
} -result \uFFFF
-test encoding-24.30 {Parse invalid utf-8 with -strict} -body {
+test encoding-24.30 {Parse noncharacter with -strict} -body {
encoding convertfrom -strict utf-8 \xEF\xBF\xBF
-} -returnCodes 1 -result {unexpected byte sequence starting at index 0: '\xEF'}
+} -result \uFFFF
test encoding-24.31 {Parse invalid utf-8 with -nocomplain} -body {
encoding convertfrom -nocomplain utf-8 \xEF\xBF\xBF
} -result \uFFFF
test encoding-24.32 {Try to generate invalid utf-8} -body {
encoding convertto utf-8 \uFFFF
} -result \xEF\xBF\xBF
-test encoding-24.33 {Try to generate invalid utf-8 with -strict} -body {
+test encoding-24.33 {Try to generate noncharacter with -strict} -body {
encoding convertto -strict utf-8 \uFFFF
-} -returnCodes 1 -result {unexpected character at index 0: 'U+00FFFF'}
+} -result \xEF\xBF\xBF
test encoding-24.34 {Try to generate invalid utf-8 with -nocomplain} -body {
encoding convertto -nocomplain utf-8 \uFFFF
} -result \xEF\xBF\xBF