Update tests for Math.hypot

This commit is contained in:
Leonardo Balter 2016-06-22 18:54:57 -04:00 committed by Mike Pennisi
parent f88c93520d
commit 80c1c46b53
1 changed files with 4 additions and 1 deletions

View File

@ -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)');