Skip to content

Commit

Permalink
[Tests] add Math.acosh test (per #338)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2017
1 parent b1d9b84 commit dd49e8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ describe('Math', function () {
expect(Math.acosh(1e160)).to.almostEqual(369.10676205960726);
expect(Math.acosh(Number.MAX_VALUE)).to.almostEqual(710.4758600739439);
});

it('works for EPSILON values near 1', function () {
expect(Math.acosh(1 + EPSILON)).to.almostEqual(Math.sqrt(2 * EPSILON));
});
});

describe('.asinh()', function () {
Expand Down

0 comments on commit dd49e8b

Please sign in to comment.