(should (equal "Zg==" (gnus-base64-repad "Zg")))
(should (equal "Zg==" (gnus-base64-repad "Zg====")))
- (should-error (gnus-base64-repad " ")
- :type 'error)
- (should-error (gnus-base64-repad "Zg== ")
- :type 'error)
+ (should (equal (gnus-base64-repad " ") ""))
+ (should (equal (gnus-base64-repad "Zg== ") "Zg=="))
(should-error (gnus-base64-repad "Z?\x00g==")
:type 'error)
;; line-length
(should (equal "Zm9vYmFy" (gnus-base64-repad "Zm9vYmFy" t)))
(should (equal "Zm9vYmFy" (gnus-base64-repad "Zm9v\r\nYmFy" nil)))
(should (equal "Zm9vYmFy" (gnus-base64-repad "Zm9v\r\nYmFy\n" nil)))
- (should-error (gnus-base64-repad "Zm9v\r\n YmFy\r\n" nil)
- :type 'error)
+ (should (equal (gnus-base64-repad "Zm9v\r\n YmFy\r\n" nil) "Zm9vYmFy"))
(should-error (gnus-base64-repad "Zm9v\r\nYmFy" nil 3)
:type 'error))