# HG changeset patch # User Kim Alvefur # Date 1509720283 -3600 # Node ID af7b41a0ec9ee7f68fdda89984c2344382ec54e4 # Parent 872efae6e2224c0d3d1334b6aa582dc2c71467e0 spec/util.encodings: Test a lonly padding (can appear like this in SASL) diff -r 872efae6e222 -r af7b41a0ec9e spec/util_encodings_spec.lua --- 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");