Software /
code /
prosody
Changeset
8373:af7b41a0ec9e
spec/util.encodings: Test a lonly padding (can appear like this in SASL)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Nov 2017 15:44:43 +0100 |
parents | 8372:872efae6e222 |
children | 8374:b52663586243 |
files | spec/util_encodings_spec.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/util_encodings_spec.lua Fri Nov 03 15:44:39 2017 +0100 +++ b/spec/util_encodings_spec.lua Fri Nov 03 15:44:43 2017 +0100 @@ -14,6 +14,7 @@ describe("#decode()", function() it("should work", function () assert.is.equal(encodings.base64.decode(""), ""); + assert.is.equal(encodings.base64.decode("="), ""); assert.is.equal(encodings.base64.decode('Y291Y291'), "coucou"); assert.is.equal(encodings.base64.decode("AAAA"), "\0\0\0"); assert.is.equal(encodings.base64.decode("////"), "\255\255\255");