mirror of https://github.com/tc39/test262.git
Update tests for Math.hypot
This commit is contained in:
parent
f88c93520d
commit
80c1c46b53
|
@ -4,7 +4,10 @@
|
|||
/*---
|
||||
es6id: 20.2.2.18
|
||||
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)');
|
||||
|
|
Loading…
Reference in New Issue