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

10 lines
205 B
JavaScript

import {hypot} from '../../../src/runtime/polyfills/Math.js';
function testHypot(hypot) {
assert.equal(1, hypot(1));
assert.equal(Math.PI, hypot(Math.PI));
}
testHypot(hypot);
testHypot(Math.hypot);