summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 09:18:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 09:18:51 (GMT)
commit3b82cae97ddc15fca3c3b101e586256504bb91f7 (patch)
tree579588ba96d303d6fe972a079c01c31af78ccc3a /tests
parent4d99b13076d70e9aa8739d161669a0b5747a46e7 (diff)
parenta6f5874dd6a97c06fc39c4d5fd429042d4facce8 (diff)
downloadtcl-3b82cae97ddc15fca3c3b101e586256504bb91f7.zip
tcl-3b82cae97ddc15fca3c3b101e586256504bb91f7.tar.gz
tcl-3b82cae97ddc15fca3c3b101e586256504bb91f7.tar.bz2
merge trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/binary.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/binary.test b/tests/binary.test
index 6c00508..ccd0f29 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -2642,6 +2642,27 @@ test binary-73.23 {binary decode base64} -body {
test binary-73.24 {binary decode base64} -body {
string length [binary decode base64 " "]
} -result 0
+test binary-73.25 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 WA==\n]]] $r
+} -result {1 X}
+test binary-73.26 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 WFk=\n]]] $r
+} -result {2 XY}
+test binary-73.27 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 WFla\n]]] $r
+} -result {3 XYZ}
+test binary-73.28 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 -strict WA==\n]]] $r
+} -returnCodes error -match glob -result {invalid base64 character *}
+test binary-73.29 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 -strict WFk=\n]]] $r
+} -returnCodes error -match glob -result {invalid base64 character *}
+test binary-73.30 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 -strict WFla\n]]] $r
+} -returnCodes error -match glob -result {invalid base64 character *}
+test binary-73.31 {binary decode base64} -body {
+ list [string length [set r [binary decode base64 WA==WFla]]] $r
+} -returnCodes error -match glob -result {invalid base64 character *}
test binary-74.1 {binary encode uuencode} -body {
binary encode uuencode