diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-07 09:43:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-07 09:43:11 (GMT) |
commit | 2558f025dac89212a8f2763770d534454ce851f4 (patch) | |
tree | 66c4a12b656b5b914a9afa50986de5c2dc3075bc | |
parent | de914c0ed5be4090e8f066359dab792e7cb0c90f (diff) | |
download | tcl-2558f025dac89212a8f2763770d534454ce851f4.zip tcl-2558f025dac89212a8f2763770d534454ce851f4.tar.gz tcl-2558f025dac89212a8f2763770d534454ce851f4.tar.bz2 |
Add two test-cases, regarding expectations on Tcl_UtfCharComplete()/Tcl_UtfToUniChar(). Backported from 8.7, let's keep numbering the same everywhere
-rw-r--r-- | tests/utf.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utf.test b/tests/utf.test index 2e4882d..1a879ad 100644 --- a/tests/utf.test +++ b/tests/utf.test @@ -139,6 +139,12 @@ test utf-4.9 {Tcl_NumUtfChars: #u20AC, calc len, incomplete} {testnumutfchars te test utf-4.10 {Tcl_NumUtfChars: #u0000, calc len, overcomplete} {testnumutfchars testbytestring} { testnumutfchars [testbytestring "\x00"] 2 } {2} +test utf-4.11 {Tcl_NumUtfChars: 3 bytes of 4-byte UTF-8 characater} {testnumutfchars testbytestring} { + testnumutfchars [testbytestring \xf0\x9f\x92\xa9] 3 +} {3} +test utf-4.12 {Tcl_NumUtfChars: #4-byte UTF-8 character} {testnumutfchars testbytestring tip389} { + testnumutfchars [testbytestring \xf0\x9f\x92\xa9] 4 +} {2} test utf-5.1 {Tcl_UtfFindFirst} {testfindfirst testbytestring} { testfindfirst [testbytestring "abcbc"] 98 |