Fixed incorrect result when file size >= 4G.

This commit is contained in:
Yi-Cyuan Chen
2017-10-29 21:22:00 +08:00
parent 24d8eb504d
commit cb8eb73ef1
11 changed files with 43 additions and 25 deletions
+7 -1
View File
@@ -241,8 +241,14 @@
});
});
});
});
context('when large size', function () {
var hash = md5.create();
hash.bytes = 4294967295;
hash.update('any');
expect(hash.hBytes).to.be(1);
});
});
describe('#bas64', function () {
for (var testCaseName in base64TestCases) {