add: Base32.random_gen() function

This commit is contained in:
lancegin
2017-06-30 13:11:18 +08:00
parent be851891f5
commit 82e18b07a0
2 changed files with 16 additions and 3 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ describe('Base32 module test', function() {
describe('static random_gen() function', function() {
it("should print 'static Base32.random_gen'", function() {
assert.equal("static Base32.random_gen", a.random_gen());
let length = 16;
assert(length, a.random_gen(length).length);
})
})
});