tor-browser

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

S9.3.1_A4_T1.js (855B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of
      7    StrUnsignedDecimalLiteral
      8 es5id: 9.3.1_A4_T1
      9 description: Compare Number('+any_number') with Number('any_number')
     10 ---*/
     11 assert.sameValue(Number("+0"), Number("0"), 'Number("+0") must return the same value returned by Number("0")');
     12 
     13 assert.sameValue(
     14  Number("+Infinity"),
     15  Infinity
     16 );
     17 
     18 assert.sameValue(
     19  Number("+1234.5678"),
     20  1234.5678
     21 );
     22 
     23 assert.sameValue(
     24  Number("+1234.5678e90"),
     25  1234.5678e90
     26 );
     27 
     28 assert.sameValue(
     29  Number("+1234.5678E90"),
     30  1234.5678E90
     31 );
     32 
     33 assert.sameValue(
     34  Number("+1234.5678e-90"),
     35  1234.5678e-90
     36 );
     37 
     38 assert.sameValue(
     39  Number("+1234.5678E-90"),
     40  1234.5678E-90
     41 );
     42 
     43 reportCompare(0, 0);