Fixed incorrect result when file size >= 512M.

This commit is contained in:
Yi-Cyuan Chen
2017-10-31 20:20:45 +08:00
parent c724643de0
commit 4ee5af05d3
9 changed files with 313 additions and 12 deletions
+7
View File
@@ -175,5 +175,12 @@
}
});
});
context('when large size', function () {
var hash = sha1.create();
hash.bytes = 4294967295;
hash.update('any');
expect(hash.hBytes).to.be(1);
});
});
})(sha1);