diff --git a/spec/util_encodings_spec.lua b/spec/util_encodings_spec.lua index 018b85539..0f4fc2b7c 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");