aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-03 15:44:43 +0100
committerKim Alvefur <zash@zash.se>2017-11-03 15:44:43 +0100
commitb832997f3590daf44cd1847254c1b87e82a58e15 (patch)
tree207e2469d5fb6881dfe6982894a80eb0748adaf3
parent72cfc3161c17b9f4978e4d55186d4cd6c5e1b315 (diff)
downloadprosody-b832997f3590daf44cd1847254c1b87e82a58e15.tar.gz
prosody-b832997f3590daf44cd1847254c1b87e82a58e15.zip
spec/util.encodings: Test a lonly padding (can appear like this in SASL)
-rw-r--r--spec/util_encodings_spec.lua1
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");