mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
spec/util.encodings: Test a lonly padding (can appear like this in SASL)
This commit is contained in:
parent
72cfc3161c
commit
b832997f35
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue