Permalink
Browse files

Other: Added assumptions to float test case

  • Loading branch information...
dcodeIO committed Dec 22, 2016
1 parent 0ea2740 commit 99dc5faa7b39fdad8ebc102de4463f8deb7f48ff
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/float.js
@@ -8,6 +8,9 @@ var protobuf = require("..");
tape.test("floats", function(test) {
test.equal(1.401298464324817e-45, Math.pow(2, -149), "literal 2^-149 should match calculated");
test.equal(5e-324, Math.pow(2, -1074), "literal 2^-1074 should match calculated");
var common = [
0,
-0,

0 comments on commit 99dc5fa

Please sign in to comment.