Skip to content

Commit

Permalink
Other: Added assumptions to float test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 22, 2016
1 parent 0ea2740 commit 99dc5fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/float.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 99dc5fa

Please sign in to comment.