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