diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-19 07:24:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-19 07:24:18 (GMT) |
commit | 3bfe6dba24b7c5f8f9f8669cb99e2bfb80b0e5da (patch) | |
tree | 4e61797366a389b5c7f003958de2c35dcd61659e /tests | |
parent | 82d0339a6592bd7855cc08df656c252dda1352c5 (diff) | |
download | tcl-3bfe6dba24b7c5f8f9f8669cb99e2bfb80b0e5da.zip tcl-3bfe6dba24b7c5f8f9f8669cb99e2bfb80b0e5da.tar.gz tcl-3bfe6dba24b7c5f8f9f8669cb99e2bfb80b0e5da.tar.bz2 |
More testcases (cesu-8)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/encoding.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index e1c55d7..0e80c09 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -414,6 +414,21 @@ test encoding-15.18 {UtfToUtfProc CESU-8 6-byte sequence} { binary scan $y H* z list [string length $y] $z } {6 eda080edb080} +test encoding-15.19 {UtfToUtfProc CESU-8 upper surrogate} { + set y [encoding convertto cesu-8 \uD800] + binary scan $y H* z + list [string length $y] $z +} {3 eda080} +test encoding-15.20 {UtfToUtfProc CESU-8 lower surrogate} { + set y [encoding convertto cesu-8 \uDC00] + binary scan $y H* z + list [string length $y] $z +} {3 edb080} +test encoding-15.21 {UtfToUtfProc CESU-8 noncharacter} { + set y [encoding convertto cesu-8 \uFFFF] + binary scan $y H* z + list [string length $y] $z +} {3 efbfbf} test encoding-16.1 {Utf16ToUtfProc} -body { set val [encoding convertfrom utf-16 NN] |