Skip to content

Commit

Permalink
Fix test for formula RATE.
Browse files Browse the repository at this point in the history
PR: #47
Reviewed-By: Jim Alateras <jima@comware.com.au>
  • Loading branch information
grin0c authored and jalateras committed Aug 22, 2016
1 parent 1da4b08 commit 30493c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/financial.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ suite('Financial', function() {
financial.RATE(2 * 12, -1000, -10000, 100000, 0, 0.75).should.approximately(0.0651789117718154, 1e-9);
financial.RATE(2 * 12, -1000, -10000, 100000, 0, 0.065).should.approximately(0.06517891177181524, 1e-9);
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 0.1).should.approximately(0.0632395800018064, 1e-9);
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 1e-11).should.approximately(-1.3199999999735999e-20, 1e-9);
financial.RATE(2 * 12, -1000, -10000, 100000, 1, 1e-14).should.approximately(-2.2949415145819036e-14, 1e-9);
financial.RATE('invalid', -1000, -10000, 100000, 1, 1e-11).should.equal(error.value);
});

Expand Down

0 comments on commit 30493c5

Please sign in to comment.