mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Update tests for Math.hypot
This commit is contained in:
parent
f88c93520d
commit
80c1c46b53
@ -4,7 +4,10 @@
|
|||||||
/*---
|
/*---
|
||||||
es6id: 20.2.2.18
|
es6id: 20.2.2.18
|
||||||
author: Ryan Lewis
|
author: Ryan Lewis
|
||||||
description: Math.hypot should return 0 if called with all arguments being 0.
|
description: Return 0 if all arguments being are 0 or -0.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Math.hypot(0, 0), 0, 'Math.hypot(0, 0)');
|
assert.sameValue(Math.hypot(0, 0), 0, 'Math.hypot(0, 0)');
|
||||||
|
assert.sameValue(Math.hypot(0, -0), 0, 'Math.hypot(0, -0)');
|
||||||
|
assert.sameValue(Math.hypot(-0, 0), 0, 'Math.hypot(-0, 0)');
|
||||||
|
assert.sameValue(Math.hypot(-0, -0), 0, 'Math.hypot(-0, -0)');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user