diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-06-06 14:35:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-06-06 14:35:02 (GMT) |
commit | f5fa2726ea8bf7971595d20e6e423641710e5d13 (patch) | |
tree | e255bf6c75e462ecf2643574cbc48c8015142792 /tests/encoding.test | |
parent | 8fcb14a7340a0079186e9c81589be46e0186e1d7 (diff) | |
parent | 9c05979998520bc1162e96cdd7a6de1011ff548c (diff) | |
download | tcl-f5fa2726ea8bf7971595d20e6e423641710e5d13.zip tcl-f5fa2726ea8bf7971595d20e6e423641710e5d13.tar.gz tcl-f5fa2726ea8bf7971595d20e6e423641710e5d13.tar.bz2 |
merge core-8-6-branch
Diffstat (limited to 'tests/encoding.test')
-rw-r--r-- | tests/encoding.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index 49555b6..be1f4d5 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -34,6 +34,7 @@ proc runtests {} { # Some tests require the testencoding command testConstraint testencoding [llength [info commands testencoding]] +testConstraint fullutf [expr {[format %c 0x010000] != "\ufffd"}] testConstraint exec [llength [info commands exec]] testConstraint testgetencpath [llength [info commands testgetencpath]] @@ -332,9 +333,14 @@ test encoding-16.1 {UnicodeToUtfProc} { set val [encoding convertfrom unicode NN] list $val [format %x [scan $val %c]] } "\u4e4e 4e4e" +test encoding-16.2 {UnicodeToUtfProc} -constraints fullutf -body { + set val [encoding convertfrom unicode "\xd8\xd8\xdc\xdc"] + list $val [format %x [scan $val %c]] +} -result "\U460dc 460dc" -test encoding-17.1 {UtfToUnicodeProc} { -} {} +test encoding-17.1 {UtfToUnicodeProc} -constraints fullutf -body { + encoding convertto unicode "\U460dc" +} -result "\xd8\xd8\xdc\xdc" test encoding-18.1 {TableToUtfProc} { } {} |