tor-browser

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

S9.3.1_A13.js (643B)


      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 DecimalDigits ::: DecimalDigits DecimalDigit is
      7    (the MV of DecimalDigits times 10) plus the MV of DecimalDigit
      8 es5id: 9.3.1_A13
      9 description: Compare '12' with Number("1")*10+Number("2") and analogous
     10 ---*/
     11 assert.sameValue(
     12  +("12"),
     13  12,
     14  'The value of `+("12")` is expected to be 12'
     15 );
     16 
     17 assert.sameValue(
     18  Number("123"),
     19  123,
     20  'Number("123") must return 123'
     21 );
     22 
     23 assert.sameValue(
     24  Number("1234"),
     25  1234,
     26  'Number("1234") must return 1234'
     27 );
     28 
     29 reportCompare(0, 0);