diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:42:46 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:42:46 (GMT) |
commit | d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42 (patch) | |
tree | 708322eb43a1d2e6430c6e9112ccbb9fc850838c /tests/binary.test | |
parent | 0d9c3c6fea70ee5c02ec0c52388a1914bca1ff4c (diff) | |
parent | ee58f2d325a281f03cf6669e8d7ae2c377a5af2d (diff) | |
download | tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.zip tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.tar.gz tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.tar.bz2 |
merge main dev branch
Diffstat (limited to 'tests/binary.test')
-rw-r--r-- | tests/binary.test | 21 |
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 |