diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-30 13:43:29 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-30 13:43:29 (GMT) |
| commit | d7c4bec3d28476bba726304bad81a27589d6f38b (patch) | |
| tree | 09745662a9ff709c293bb2ac392b7a1f46ba0b54 | |
| parent | ddc9ff2c167c5a19003b36a7998d571aeb243ffa (diff) | |
| download | tcl-d7c4bec3d28476bba726304bad81a27589d6f38b.zip tcl-d7c4bec3d28476bba726304bad81a27589d6f38b.tar.gz tcl-d7c4bec3d28476bba726304bad81a27589d6f38b.tar.bz2 | |
New encoding-15.16 test-case. Fix title of utf 2 test-cases.
| -rw-r--r-- | tests/encoding.test | 5 | ||||
| -rw-r--r-- | tests/utf.test | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index ec1d111..67317c2 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -319,6 +319,11 @@ test encoding-15.3 {UtfToUtfProc null character input} { binary scan [encoding convertto identity $y] H* z list [string bytelength $x] [string bytelength $y] $z } {1 2 c080} +test encoding-15.16 {UtfToUtfProc: Invalid 4-byte UTF-8, see [ed29806ba]} { + set x \xF0\xA0\xA1\xC2 + set y [encoding convertfrom utf-8 \xF0\xA0\xA1\xC2] + list [string length $x] $y +} "4 \xF0\xA0\xA1\xC2" test encoding-16.1 {UnicodeToUtfProc} { set val [encoding convertfrom unicode NN] diff --git a/tests/utf.test b/tests/utf.test index b95efa9..68353c8 100644 --- a/tests/utf.test +++ b/tests/utf.test @@ -1258,10 +1258,10 @@ test utf-13.6 {Tcl_UtfToTitle Georgian (new in Unicode 11)} { test utf-13.7 {Tcl_UtfToTitle low/high surrogate)} { string totitle \uDC24\uD824 } \uDC24\uD824 -test utf-13.8 {Tcl_UniCharToTitle beyond U+FFFF} {Uesc fullutf} { +test utf-13.8 {Tcl_UtfToTitle beyond U+FFFF} {Uesc fullutf} { string totitle \U10428\U10400 } \U10400\U10428 -test utf-13.9 {Tcl_UniCharToTitle beyond U+FFFF} pairsTo4bytes { +test utf-13.9 {Tcl_UtfToTitle beyond U+FFFF} pairsTo4bytes { string totitle \uD801\uDC28\uD801\uDC00 } \uD801\uDC00\uD801\uDC28 |
