Fixed incorrect result when file size >= 512M.

This commit is contained in:
Yi-Cyuan Chen
2017-10-31 20:54:48 +08:00
parent 05de50a022
commit 094ce76c5a
6 changed files with 22 additions and 6 deletions
+7
View File
@@ -316,6 +316,13 @@
});
});
});
context('when large size', function () {
var hash = algorithm.create();
hash.bytes = 4294967295;
hash.update('any');
expect(hash.hBytes).to.be(1);
});
});
}