implement zlib via web assembly, replacing rawdeflate library

This commit is contained in:
El RIDO 2018-12-27 21:32:13 +01:00
parent 5ce3aa2817
commit 0ad5b3e900
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
8 changed files with 216 additions and 1724 deletions

View file

@ -2,12 +2,12 @@
require('../common');
describe('CryptTool', function () {
afterEach(async function () {
// pause to let async functions conclude
await new Promise(resolve => setTimeout(resolve, 1900));
});
describe('cipher & decipher', function () {
afterEach(async function () {
// pause to let async functions conclude
await new Promise(resolve => setTimeout(resolve, 1900));
});
this.timeout(30000);
it('can en- and decrypt any message', function () {
jsc.check(jsc.forall(
@ -29,7 +29,8 @@ describe('CryptTool', function () {
clean();
return message === plaintext;
}
));
),
{tests: 3});
});
// The below static unit tests are included to ensure deciphering of "classic"