babel/test/fixtures/traceur/Math/cosh.module.js
2015-01-04 19:40:09 +11:00

12 lines
270 B
JavaScript

import {cosh} from '../../../src/runtime/polyfills/Math.js';
function testCosh(cosh) {
assert.equal(Infinity, cosh(-Infinity));
assert.equal(Infinity, cosh(Infinity));
assert.equal(1, cosh(0));
assert.equal(1, cosh(-0));
}
testCosh(cosh);
testCosh(Math.cosh);