Fixed incorrect result when file size >= 512M.

This commit is contained in:
Yi-Cyuan Chen
2017-10-31 19:53:15 +08:00
parent ee3b3869bc
commit 77efe9529c
8 changed files with 304 additions and 9 deletions
+7
View File
@@ -240,6 +240,13 @@
});
});
});
context('when large size', function () {
var hash = algorithm.create();
hash.bytes = 4294967295;
hash.update('any');
expect(hash.hBytes).to.be(1);
});
});
});
}