Wed, 31 Dec 2014 07:53:36 +0100
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::: DecimalDigits. ExponentPart
6 * is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart
7 *
8 * @path ch09/9.3/9.3.1/S9.3.1_A8.js
9 * @description Compare Number('1234e5') and Number('1234.e5') with Number('1234')*1e5
10 */
12 // CHECK#1
13 if (Number("1234e5") !== Number("1234")*1e5) {
14 $ERROR('#1: Number("1234e5") === Number("1234")*1e5');
15 }
17 // CHECK#2
18 if (Number("1234.e5") !== +("1234")*1e5) {
19 $ERROR('#2: Number("1234.e5") === +("1234")*1e5');
20 }