Sign in
webkit
/
WebKit
/
6fd57f0545e2ab789319dc828ca2e5959d39c256
/
.
/
JSTests
/
es6
/
Math_methods_Math.hypot.js
blob: b04571d5fef0b5a245e55edf05a315bf5bc9d3d9 [
file
] [
log
] [
blame
]
function
test
()
{
return
Math
.
hypot
()
===
0
&&
Math
.
hypot
(
1
)
===
1
&&
Math
.
hypot
(
9
,
12
,
20
)
===
25
&&
Math
.
hypot
(
27
,
36
,
60
,
100
)
===
125
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);