Skip to content
Snippets Groups Projects
Commit 80c1c46b authored by Leonardo Balter's avatar Leonardo Balter Committed by Mike Pennisi
Browse files

Update tests for Math.hypot

parent f88c9352
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,10 @@ ...@@ -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)');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment