diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-20 09:42:26 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-12-20 09:42:26 (GMT) |
commit | 7561bdb176677ac643786eb846f918403fc872b3 (patch) | |
tree | b213cdd0a448c8d0de28e22f94d9c3f58720b133 /tests/encoding.test | |
parent | d61473e631e6369735cee6487ee47eff5d690a1b (diff) | |
parent | ac4faee2328d37860ec958ec755508713cbf6ea7 (diff) | |
download | tcl-7561bdb176677ac643786eb846f918403fc872b3.zip tcl-7561bdb176677ac643786eb846f918403fc872b3.tar.gz tcl-7561bdb176677ac643786eb846f918403fc872b3.tar.bz2 |
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r-- | tests/encoding.test | 8 |
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 |