diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-16 18:59:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-16 18:59:14 (GMT) |
commit | b0e7980ba4b61bfc9867143b3a08fe0d74894690 (patch) | |
tree | beaad334c814a35e3e90e6297ed8886ee837c853 /tests/binary.test | |
parent | ee5dada68d84581a9b0c3ac970c11b862f0eb186 (diff) | |
parent | fe8ae4eafcd82339318ba2c288431d00bbee06d9 (diff) | |
download | tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.zip tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.gz tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.bz2 |
merge trunk; update changes
Diffstat (limited to 'tests/binary.test')
-rw-r--r-- | tests/binary.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/binary.test b/tests/binary.test index 4393245..d424837 100644 --- a/tests/binary.test +++ b/tests/binary.test @@ -2499,6 +2499,34 @@ test binary-71.9 {binary decode hex} -body { test binary-71.10 {binary decode hex} -body { string length [binary decode hex " "] } -result 0 +test binary-71.11 {binary decode hex: Bug b98fa55285} -body { + apply {{} { + set str "137b6f95e7519389e7c4b36599781e2ccf492699649249aae43fbe8c26\n" + set decoded [binary decode hex $str] + list [string length $decoded] [scan [string index $decoded end] %c] + }} +} -result {29 38} +test binary-71.12 {binary decode hex: Bug b98fa55285 cross check} -body { + apply {{} { + set str "137b6f95e7519389e7c4b36599781e2ccf492699649249aae43fbe8c2\n" + set decoded [binary decode hex $str] + list [string length $decoded] [scan [string index $decoded end] %c] + }} +} -result {28 140} +test binary-71.13 {binary decode hex: Bug b98fa55285 cross check} -body { + apply {{} { + set str "137b6f95e7519389e7c4b36599781e2ccf492699649249aae43fbe8c2\n\n" + set decoded [binary decode hex $str] + list [string length $decoded] [scan [string index $decoded end] %c] + }} +} -result {28 140} +test binary-71.14 {binary decode hex: Bug b98fa55285 cross check} -body { + apply {{} { + set str "137b6f95e7519389e7c4b36599781e2ccf492699649249aae43fbe8c2\n\n\n" + set decoded [binary decode hex $str] + list [string length $decoded] [scan [string index $decoded end] %c] + }} +} -result {28 140} test binary-72.1 {binary encode base64} -body { binary encode base64 |