js/src/tests/test262/ch09/9.3/9.3.1/S9.3.1_A6_T1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
     6  * (a value so large that it will round to <b><tt>+&infin;</tt></b>)
     7  *
     8  * @path ch09/9.3/9.3.1/S9.3.1_A6_T1.js
     9  * @description Compare Number('Infinity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number("10e10000")
    10  */
    12 // CHECK#1
    13 if (Number("Infinity") !== Number.POSITIVE_INFINITY) {
    14   $ERROR('#1: Number("Infinity") === Number.POSITIVE_INFINITY');
    15 }
    17 // CHECK#2
    18 if (Number("Infinity") !== 10e10000) {
    19   $ERROR('#2: Number("Infinity") === 10e10000');
    20 }
    22 // CHECK#3
    23 if (Number("Infinity") !== 10E10000) {
    24   $ERROR('#3: Number("Infinity") === 10E10000');
    25 }
    27 // CHECK#4
    28 if (Number("Infinity") !== Number("10e10000")) {
    29   $ERROR('#4: Number("Infinity") === Number("10e10000")');
    30 }

mercurial