Skip to content

Commit 99dc5fa

Browse files
committed
Other: Added assumptions to float test case
1 parent 0ea2740 commit 99dc5fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/float.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ var protobuf = require("..");
88

99
tape.test("floats", function(test) {
1010

11+
test.equal(1.401298464324817e-45, Math.pow(2, -149), "literal 2^-149 should match calculated");
12+
test.equal(5e-324, Math.pow(2, -1074), "literal 2^-1074 should match calculated");
13+
1114
var common = [
1215
0,
1316
-0,

0 commit comments

Comments
 (0)