adding unit test for truncation issue #328

This commit is contained in:
El RIDO 2018-06-26 22:31:26 +02:00
parent 14d4226173
commit c76957b3cb
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
2 changed files with 1925 additions and 0 deletions

15
js/test/Truncation.js Normal file
View file

@ -0,0 +1,15 @@
'use strict';
var common = require('../common');
describe('Compression', function () {
it('does not truncate messages', function () {
var message = fs.readFileSync('test/compression-sample.txt', 'utf8');
assert.strictEqual(
message,
Base64.btou( RawDeflate.inflate(
RawDeflate.deflate( Base64.utob(message) )
) )
);
});
});

File diff suppressed because it is too large Load diff