tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Math.hypot_Zero_2.js (710B)


      1 // Copyright (c) 2014 Ryan Lewis. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-math.hypot
      6 es6id: 20.2.2.18
      7 author: Ryan Lewis
      8 description: Math.hypot should return 0 if all arguments are 0 or -0.
      9 ---*/
     10 
     11 assert.sameValue(Math.hypot(0), 0, 'Math.hypot(0)');
     12 assert.sameValue(Math.hypot(-0), 0, 'Math.hypot(-0)');
     13 assert.sameValue(Math.hypot(0, 0), 0, 'Math.hypot(0, 0)');
     14 assert.sameValue(Math.hypot(0, -0), 0, 'Math.hypot(0, -0)');
     15 assert.sameValue(Math.hypot(-0, 0), 0, 'Math.hypot(-0, 0)');
     16 assert.sameValue(Math.hypot(-0, -0), 0, 'Math.hypot(-0, -0)');
     17 assert.sameValue(Math.hypot(0, -0, -0), 0, 'Math.hypot(0, -0, -0)');
     18 
     19 reportCompare(0, 0);