diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-03 15:44:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-03 15:44:43 +0100 |
commit | 984aae6307384be9afa8d7e0f601462e7df198b1 (patch) | |
tree | 207e2469d5fb6881dfe6982894a80eb0748adaf3 /spec/util_encodings_spec.lua | |
parent | 5567d02e1f5342933a5d17733cabecaa9088f390 (diff) | |
download | prosody-984aae6307384be9afa8d7e0f601462e7df198b1.tar.gz prosody-984aae6307384be9afa8d7e0f601462e7df198b1.zip |
spec/util.encodings: Test a lonly padding (can appear like this in SASL)
Diffstat (limited to 'spec/util_encodings_spec.lua')
-rw-r--r-- | spec/util_encodings_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_encodings_spec.lua b/spec/util_encodings_spec.lua index 018b8553..0f4fc2b7 100644 --- a/spec/util_encodings_spec.lua +++ b/spec/util_encodings_spec.lua @@ -14,6 +14,7 @@ describe("util.encodings", function () 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"); |