aboutsummaryrefslogtreecommitdiffstats
path: root/spec
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
commit984aae6307384be9afa8d7e0f601462e7df198b1 (patch)
tree207e2469d5fb6881dfe6982894a80eb0748adaf3 /spec
parent5567d02e1f5342933a5d17733cabecaa9088f390 (diff)
downloadprosody-984aae6307384be9afa8d7e0f601462e7df198b1.tar.gz
prosody-984aae6307384be9afa8d7e0f601462e7df198b1.zip
spec/util.encodings: Test a lonly padding (can appear like this in SASL)
Diffstat (limited to 'spec')
-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");