Skip to content

Commit

Permalink
Tolerate Math.log rounding in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed May 12, 2017
1 parent 125a764 commit c482188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('util.js', function () {

var identity = util.log(10, 10);

var logNineThree = util.log(9,3);
var logNineThree = Math.round(util.log(9,3) * 1e5) / 1e5; // Tolerate rounding errors

// log(1) should equal 0, no matter the base
expect(base10).to.eql(base2);
Expand Down

0 comments on commit c482188

Please sign in to comment.