diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2022-10-10 13:52:29 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2022-10-10 13:52:29 (GMT) |
commit | 23900950d5ad3b15b790aacb18f9e0220836b132 (patch) | |
tree | 5be8067ee48a6eb841bb2b3b48c69e00b1206367 /tests | |
parent | 6def8b0f5838db2823d34a3210e018e1a59faee7 (diff) | |
download | tcl-23900950d5ad3b15b790aacb18f9e0220836b132.zip tcl-23900950d5ad3b15b790aacb18f9e0220836b132.tar.gz tcl-23900950d5ad3b15b790aacb18f9e0220836b132.tar.bz2 |
Tests and docs for Tcl_GetEncodingNulLength
Diffstat (limited to 'tests')
-rw-r--r-- | tests/encoding.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index c8f409e..8e529af 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -841,6 +841,17 @@ runtests } +test encoding-29.0 {get encoding nul terminator lengths} -constraints { + testencoding +} -body { + list \ + [testencoding nullength ascii] \ + [testencoding nullength utf-16] \ + [testencoding nullength utf-32] \ + [testencoding nullength gb12345] \ + [testencoding nullength ksc5601] +} -result {1 2 4 2 2} + # cleanup namespace delete ::tcl::test::encoding ::tcltest::cleanupTests |