diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 22:02:41 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 22:02:41 (GMT) |
commit | 42e81a69ad3d6b7b5a58d55b4d32de32827bfa9a (patch) | |
tree | ab1478cae4ba04dbd3508639a1550c4a8bce93fb /tests | |
parent | 1bbb59721706e015ba729694e3b6c68886755662 (diff) | |
download | tcl-42e81a69ad3d6b7b5a58d55b4d32de32827bfa9a.zip tcl-42e81a69ad3d6b7b5a58d55b4d32de32827bfa9a.tar.gz tcl-42e81a69ad3d6b7b5a58d55b4d32de32827bfa9a.tar.bz2 |
Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work on win32/win64. Patch adapted from Androwish (thanks, Werner!)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/encoding.test | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index ab60617..4736928 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -36,7 +36,6 @@ proc runtests {} { testConstraint testencoding [llength [info commands testencoding]] testConstraint testbytestring [llength [info commands testbytestring]] testConstraint teststringbytes [llength [info commands teststringbytes]] -testConstraint tip389 [expr {[string length \U010000] == 2}] testConstraint exec [llength [info commands exec]] testConstraint testgetencpath [llength [info commands testgetencpath]] @@ -323,16 +322,16 @@ test encoding-15.3 {UtfToUtfProc null character input} teststringbytes { set z } c080 -test encoding-16.1 {UnicodeToUtfProc} -constraints tip389 -body { +test encoding-16.1 {UnicodeToUtfProc} -body { set val [encoding convertfrom unicode NN] list $val [format %x [scan $val %c]] } -result "\u4e4e 4e4e" -test encoding-16.2 {UnicodeToUtfProc} -constraints tip389 -body { +test encoding-16.2 {UnicodeToUtfProc} -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} -constraints tip389 -body { +test encoding-17.1 {UtfToUnicodeProc} -body { encoding convertto unicode "\U460dc" } -result "\xd8\xd8\xdc\xdc" |