From 99dc5faa7b39fdad8ebc102de4463f8deb7f48ff Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 22 Dec 2016 13:39:45 +0100 Subject: [PATCH] Other: Added assumptions to float test case --- tests/float.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/float.js b/tests/float.js index 6d9f6bdf0..7ca673513 100644 --- a/tests/float.js +++ b/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,