diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /js/src/tests/test262/ch07/7.8/7.8.3 | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/tests/test262/ch07/7.8/7.8.3')
82 files changed, 3840 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js new file mode 100644 index 000000000..fa67b5095 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-1-s.js
+ * @description Strict Mode - octal extension (010) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_1 = 010;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_1 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js new file mode 100644 index 000000000..91b6ceae2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js @@ -0,0 +1,16 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-1gs.js
+ * @description Strict Mode - octal extension(010) is forbidden in strict mode
+ * @onlyStrict
+ * @negative ^((?!NotEarlyError).)*$
+ */
+
+"use strict";
+throw NotEarlyError;
+var y = 010;
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js new file mode 100644 index 000000000..79755f8df --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-2-s.js
+ * @description Strict Mode - octal extension (00) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_2 = 00;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_2 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js new file mode 100644 index 000000000..dae203a53 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js @@ -0,0 +1,17 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-2gs.js
+ * @description Strict Mode - octal extension is forbidden in strict mode (after a hex number is assigned to a variable)
+ * @onlyStrict
+ * @negative ^((?!NotEarlyError).)*$
+ */
+
+"use strict";
+throw NotEarlyError;
+var a;
+a = 0x1;
+a = 01;
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js new file mode 100644 index 000000000..7d33f9a5c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-3-s.js
+ * @description Strict Mode - octal extension (01) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_3 = 01;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_3 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js new file mode 100644 index 000000000..48d56d63e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js @@ -0,0 +1,15 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-3gs.js
+ * @description Strict Mode - octal extension is forbidden in strict mode (after a hex number is assigned to a variable from an eval)
+ * @onlyStrict
+ * @negative SyntaxError
+ */
+
+"use strict";
+var a;
+eval("a = 0x1;a = 01;");
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js new file mode 100644 index 000000000..53a486b05 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-4-s.js
+ * @description Strict Mode - octal extension (06) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_4 = 06;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_4 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js new file mode 100644 index 000000000..98ac43f58 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-5-s.js
+ * @description Strict Mode - octal extension (07) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_5 = 07;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_5 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js new file mode 100644 index 000000000..fe2f60c64 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-6-s.js
+ * @description Strict Mode - octal extension (000) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_6 = 000;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_6 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js new file mode 100644 index 000000000..d0ffda882 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-7-s.js
+ * @description Strict Mode - octal extension (005) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_7 = 005;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_7 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js new file mode 100644 index 000000000..ff82f498e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js + * @description DecimalIntegerLiteral :: 0, NoNZeroDigit + */ + +//CHECK#0 +if (0 !== 0) { + $ERROR('#0: 0 === 0'); +} + +//CHECK#1 +if (1 !== 1) { + $ERROR('#1: 1 === 1'); +} + +//CHECK#2 +if (2 !== 2) { + $ERROR('#2: 2 === 2'); +} + +//CHECK#3 +if (3 !== 3) { + $ERROR('#3: 3 === 3'); +} + +//CHECK#4 +if (4 !== 4) { + $ERROR('#4: 4 === 4'); +} + +//CHECK#5 +if (5 !== 5) { + $ERROR('#5: 5 === 5'); +} + +//CHECK#6 +if (6 !== 6) { + $ERROR('#6: 6 === 6'); +} + +//CHECK#7 +if (7 !== 7) { + $ERROR('#7: 7 === 7'); +} + +//CHECK#8 +if (8 !== 8) { + $ERROR('#8: 8 === 8'); +} + +//CHECK#9 +if (9 !== 9) { + $ERROR('#9: 9 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js new file mode 100644 index 000000000..df2206462 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js + * @description DecimalIntegerLiteral :: NoNZeroDigit DecimalDigits + */ + +//CHECK#1 +if (11 !== 11) { + $ERROR('#1: 11 === 11'); +} + +//CHECK#2 +if (22 !== 22) { + $ERROR('#2: 22 === 22'); +} + +//CHECK#3 +if (33 !== 33) { + $ERROR('#3: 33 === 33'); +} + +//CHECK#4 +if (44 !== 44) { + $ERROR('#4: 44 === 44'); +} + +//CHECK#5 +if (55 !== 55) { + $ERROR('#5: 55 === 55'); +} + +//CHECK#6 +if (66 !== 66) { + $ERROR('#6: 66 === 66'); +} + +//CHECK#7 +if (77 !== 77) { + $ERROR('#7: 77 === 77'); +} + +//CHECK#8 +if (88 !== 88) { + $ERROR('#8: 88 === 88'); +} + +//CHECK#9 +if (99 !== 99) { + $ERROR('#9: 99 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js new file mode 100644 index 000000000..50a042d2c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0e1 !== 0) { + $ERROR('#0: 0e1 === 0'); +} + +//CHECK#1 +if (1e1 !== 10) { + $ERROR('#1: 1e1 === 10'); +} + +//CHECK#2 +if (2e1 !== 20) { + $ERROR('#2: 2e1 === 20'); +} + +//CHECK#3 +if (3e1 !== 30) { + $ERROR('#3: 3e1 === 30'); +} + +//CHECK#4 +if (4e1 !== 40) { + $ERROR('#4: 4e1 === 40'); +} + +//CHECK#5 +if (5e1 !== 50) { + $ERROR('#5: 5e1 === 50'); +} + +//CHECK#6 +if (6e1 !== 60) { + $ERROR('#6: 6e1 === 60'); +} + +//CHECK#7 +if (7e1 !== 70) { + $ERROR('#7: 7e1 === 70'); +} + +//CHECK#8 +if (8e1 !== 80) { + $ERROR('#8: 8e1 === 80'); +} + +//CHECK#9 +if (9e1 !== 90) { + $ERROR('#9: 9e1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js new file mode 100644 index 000000000..f2398a460 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0E1 !== 0) { + $ERROR('#0: 0E1 === 0'); +} + +//CHECK#1 +if (1E1 !== 10) { + $ERROR('#1: 1E1 === 1'); +} + +//CHECK#2 +if (2E1 !== 20) { + $ERROR('#2: 2E1 === 20'); +} + +//CHECK#3 +if (3E1 !== 30) { + $ERROR('#3: 3E1 === 30'); +} + +//CHECK#4 +if (4E1 !== 40) { + $ERROR('#4: 4E1 === 40'); +} + +//CHECK#5 +if (5E1 !== 50) { + $ERROR('#5: 5E1 === 50'); +} + +//CHECK#6 +if (6E1 !== 60) { + $ERROR('#6: 6E1 === 60'); +} + +//CHECK#7 +if (7E1 !== 70) { + $ERROR('#7: 7E1 === 70'); +} + +//CHECK#8 +if (8E1 !== 80) { + $ERROR('#8: 8E1 === 80'); +} + +//CHECK#9 +if (9E1 !== 90) { + $ERROR('#9: 9E1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js new file mode 100644 index 000000000..352745f8a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0e-1 !== 0) { + $ERROR('#0: 0e-1 === 0'); +} + +//CHECK#1 +if (1e-1 !== 0.1) { + $ERROR('#1: 1e-1 === 0.1'); +} + +//CHECK#2 +if (2e-1 !== 0.2) { + $ERROR('#2: 2e-1 === 0.2'); +} + +//CHECK#3 +if (3e-1 !== 0.3) { + $ERROR('#3: 3e-1 === 0.3'); +} + +//CHECK#4 +if (4e-1 !== 0.4) { + $ERROR('#4: 4e-1 === 0.4'); +} + +//CHECK#5 +if (5e-1 !== 0.5) { + $ERROR('#5: 5e-1 === 0.5'); +} + +//CHECK#6 +if (6e-1 !== 0.6) { + $ERROR('#6: 6e-1 === 0.6'); +} + +//CHECK#7 +if (7e-1 !== 0.7) { + $ERROR('#7: 7e-1 === 0.7'); +} + +//CHECK#8 +if (8e-1 !== 0.8) { + $ERROR('#8: 8e-1 === 0.8'); +} + +//CHECK#9 +if (9e-1 !== 0.9) { + $ERROR('#9: 9e-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js new file mode 100644 index 000000000..b0f95210f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0E-1 !== 0) { + $ERROR('#0: 0E-1 === 0'); +} + +//CHECK#1 +if (1E-1 !== 0.1) { + $ERROR('#1: 1E-1 === 0.1'); +} + +//CHECK#2 +if (2E-1 !== 0.2) { + $ERROR('#2: 2E-1 === 0.2'); +} + +//CHECK#3 +if (3E-1 !== 0.3) { + $ERROR('#3: 3E-1 === 0.3'); +} + +//CHECK#4 +if (4E-1 !== 0.4) { + $ERROR('#4: 4E-1 === 0.4'); +} + +//CHECK#5 +if (5E-1 !== 0.5) { + $ERROR('#5: 5E-1 === 0.5'); +} + +//CHECK#6 +if (6E-1 !== 0.6) { + $ERROR('#6: 6E-1 === 0.6'); +} + +//CHECK#7 +if (7E-1 !== 0.7) { + $ERROR('#7: 7E-1 === 0.7'); +} + +//CHECK#8 +if (8E-1 !== 0.8) { + $ERROR('#8: 8E-1 === 0.8'); +} + +//CHECK#9 +if (9E-1 !== 0.9) { + $ERROR('#9: 9E-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js new file mode 100644 index 000000000..87c79f63d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0e+1 !== 0) { + $ERROR('#0: 0e+1 === 0'); +} + +//CHe+CK#1 +if (1e+1 !== 10) { + $ERROR('#1: 1e+1 === 10'); +} + +//CHe+CK#2 +if (2e+1 !== 20) { + $ERROR('#2: 2e+1 === 20'); +} + +//CHe+CK#3 +if (3e+1 !== 30) { + $ERROR('#3: 3e+1 === 30'); +} + +//CHe+CK#4 +if (4e+1 !== 40) { + $ERROR('#4: 4e+1 === 40'); +} + +//CHe+CK#5 +if (5e+1 !== 50) { + $ERROR('#5: 5e+1 === 50'); +} + +//CHe+CK#6 +if (6e+1 !== 60) { + $ERROR('#6: 6e+1 === 60'); +} + +//CHe+CK#7 +if (7e+1 !== 70) { + $ERROR('#7: 7e+1 === 70'); +} + +//CHe+CK#8 +if (8e+1 !== 80) { + $ERROR('#8: 8e+1 === 80'); +} + +//CHe+CK#9 +if (9e+1 !== 90) { + $ERROR('#9: 9e+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js new file mode 100644 index 000000000..bdfc65d33 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0E+1 !== 0) { + $ERROR('#0: 0E+1 === 0'); +} + +//CHE+CK#1 +if (1E+1 !== 10) { + $ERROR('#1: 1E+1 === 10'); +} + +//CHE+CK#2 +if (2E+1 !== 20) { + $ERROR('#2: 2E+1 === 20'); +} + +//CHE+CK#3 +if (3E+1 !== 30) { + $ERROR('#3: 3E+1 === 30'); +} + +//CHE+CK#4 +if (4E+1 !== 40) { + $ERROR('#4: 4E+1 === 40'); +} + +//CHE+CK#5 +if (5E+1 !== 50) { + $ERROR('#5: 5E+1 === 50'); +} + +//CHE+CK#6 +if (6E+1 !== 60) { + $ERROR('#6: 6E+1 === 60'); +} + +//CHE+CK#7 +if (7E+1 !== 70) { + $ERROR('#7: 7E+1 === 70'); +} + +//CHE+CK#8 +if (8E+1 !== 80) { + $ERROR('#8: 8E+1 === 80'); +} + +//CHE+CK#9 +if (9E+1 !== 90) { + $ERROR('#9: 9E+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js new file mode 100644 index 000000000..d636e7e6b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0e0 !== 0) { + $ERROR('#0: 0e0 === 0'); +} + +//CHECK#1 +if (1e0 !== 1) { + $ERROR('#1: 1e0 === 1'); +} + +//CHECK#2 +if (2e0 !== 2) { + $ERROR('#2: 2e0 === 2'); +} + +//CHECK#3 +if (3e0 !== 3) { + $ERROR('#3: 3e0 === 3'); +} + +//CHECK#4 +if (4e0 !== 4) { + $ERROR('#4: 4e0 === 4'); +} + +//CHECK#5 +if (5e0 !== 5) { + $ERROR('#5: 5e0 === 5'); +} + +//CHECK#6 +if (6e0 !== 6) { + $ERROR('#6: 6e0 === 6'); +} + +//CHECK#7 +if (7e0 !== 7) { + $ERROR('#7: 7e0 === 7'); +} + +//CHECK#8 +if (8e0 !== 8) { + $ERROR('#8: 8e0 === 8'); +} + +//CHECK#9 +if (9e0 !== 9) { + $ERROR('#9: 9e0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js new file mode 100644 index 000000000..c45e4353d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0E0 !== 0) { + $ERROR('#0: 0E0 === 0'); +} + +//CHECK#1 +if (1E0 !== 1) { + $ERROR('#1: 1E0 === 1'); +} + +//CHECK#2 +if (2E0 !== 2) { + $ERROR('#2: 2E0 === 2'); +} + +//CHECK#3 +if (3E0 !== 3) { + $ERROR('#3: 3E0 === 3'); +} + +//CHECK#4 +if (4E0 !== 4) { + $ERROR('#4: 4E0 === 4'); +} + +//CHECK#5 +if (5E0 !== 5) { + $ERROR('#5: 5E0 === 5'); +} + +//CHECK#6 +if (6E0 !== 6) { + $ERROR('#6: 6E0 === 6'); +} + +//CHECK#7 +if (7E0 !== 7) { + $ERROR('#7: 7E0 === 7'); +} + +//CHECK#8 +if (8E0 !== 8) { + $ERROR('#8: 8E0 === 8'); +} + +//CHECK#9 +if (9E0 !== 9) { + $ERROR('#9: 9E0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js new file mode 100644 index 000000000..571cfe65e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js + * @description Use .DecimalDigit + */ + +//CHECK#0 +if (.0 !== 0.0) { + $ERROR('#0: .0 === 0.0'); +} + +//CHECK#1 +if (.1 !== 0.1) { + $ERROR('#1: .1 === 0.1'); +} + +//CHECK#2 +if (.2 !== 0.2) { + $ERROR('#2: .2 === 0.2'); +} + +//CHECK#3 +if (.3 !== 0.3) { + $ERROR('#3: .3 === 0.3'); +} + +//CHECK#4 +if (.4 !== 0.4) { + $ERROR('#4: .4 === 0.4'); +} + +//CHECK#5 +if (.5 !== 0.5) { + $ERROR('#5: .5 === 0.5'); +} + +//CHECK#6 +if (.6 !== 0.6) { + $ERROR('#6: .6 === 0.6'); +} + +//CHECK#7 +if (.7 !== 0.7) { + $ERROR('#7: .7 === 0.7'); +} + +//CHECK#8 +if (.8 !== 0.8) { + $ERROR('#8: .8 === 0.8'); +} + +//CHECK#9 +if (.9 !== 0.9) { + $ERROR('#9: .9 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js new file mode 100644 index 000000000..88ed6fc02 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js + * @description Use .DecimalDigits + */ + +//CHECK#0 +if (.00 !== 0.00) { + $ERROR('#0: .00 === 0.00'); +} + +//CHECK#1 +if (.11 !== 0.11) { + $ERROR('#1: .11 === 0.11'); +} + +//CHECK#2 +if (.22 !== 0.22) { + $ERROR('#2: .22 === 0.22'); +} + +//CHECK#3 +if (.33 !== 0.33) { + $ERROR('#3: .33 === 0.33'); +} + +//CHECK#4 +if (.44 !== 0.44) { + $ERROR('#4: .44 === 0.44'); +} + +//CHECK#5 +if (.55 !== 0.55) { + $ERROR('#5: .55 === 0.55'); +} + +//CHECK#6 +if (.66 !== 0.66) { + $ERROR('#6: .66 === 0.66'); +} + +//CHECK#7 +if (.77 !== 0.77) { + $ERROR('#7: .77 === 0.77'); +} + +//CHECK#8 +if (.88 !== 0.88) { + $ERROR('#8: .88 === 0.88'); +} + +//CHECK#9 +if (.99 !== 0.99) { + $ERROR('#9: .99 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js new file mode 100644 index 000000000..2b5d47bd1 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js + * @description Use .DecimalDigits that have at the end zeros + */ + +//CHECK#0 +if (.00 !== 0.0) { + $ERROR('#0: .0 === 0.0'); +} + +//CHECK#1 +if (.10 !== 0.1) { + $ERROR('#1: .1 === 0.1'); +} + +//CHECK#2 +if (.20 !== 0.2) { + $ERROR('#2: .2 === 0.2'); +} + +//CHECK#3 +if (.30 !== 0.3) { + $ERROR('#3: .3 === 0.3'); +} + +//CHECK#4 +if (.40 !== 0.4) { + $ERROR('#4: .4 === 0.4'); +} + +//CHECK#5 +if (.50 !== 0.5) { + $ERROR('#5: .5 === 0.5'); +} + +//CHECK#6 +if (.60 !== 0.6) { + $ERROR('#6: .6 === 0.6'); +} + +//CHECK#7 +if (.70 !== 0.7) { + $ERROR('#7: .7 === 0.7'); +} + +//CHECK#8 +if (.80 !== 0.8) { + $ERROR('#8: .8 === 0.8'); +} + +//CHECK#9 +if (.90 !== 0.9) { + $ERROR('#9: .9 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js new file mode 100644 index 000000000..bd80eb9d7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (.0e1 !== 0) { + $ERROR('#0: .0e1 === 0'); +} + +//CHECK#1 +if (.1e1 !== 1) { + $ERROR('#1: .1e1 === 1'); +} + +//CHECK#2 +if (.2e1 !== 2) { + $ERROR('#2: .2e1 === 2'); +} + +//CHECK#3 +if (.3e1 !== 3) { + $ERROR('#3: .3e1 === 3'); +} + +//CHECK#4 +if (.4e1 !== 4) { + $ERROR('#4: .4e1 === 4'); +} + +//CHECK#5 +if (.5e1 !== 5) { + $ERROR('#5: .5e1 === 5'); +} + +//CHECK#6 +if (.6e1 !== 6) { + $ERROR('#6: .6e1 === 6'); +} + +//CHECK#7 +if (.7e1 !== 7) { + $ERROR('#7: .7e1 === 7'); +} + +//CHECK#8 +if (.8e1 !== 8) { + $ERROR('#8: .8e1 === 8'); +} + +//CHECK#9 +if (.9e1 !== 9) { + $ERROR('#9: .9e1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js new file mode 100644 index 000000000..0e6db7925 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (.0E1 !== 0) { + $ERROR('#0: .0E1 === 0'); +} + +//CHECK#1 +if (.1E1 !== 1) { + $ERROR('#1: .1E1 === 1'); +} + +//CHECK#2 +if (.2E1 !== 2) { + $ERROR('#2: .2E1 === 2'); +} + +//CHECK#3 +if (.3E1 !== 3) { + $ERROR('#3: .3E1 === 3'); +} + +//CHECK#4 +if (.4E1 !== 4) { + $ERROR('#4: .4E1 === 4'); +} + +//CHECK#5 +if (.5E1 !== 5) { + $ERROR('#5: .5E1 === 5'); +} + +//CHECK#6 +if (.6E1 !== 6) { + $ERROR('#6: .6E1 === 6'); +} + +//CHECK#7 +if (.7E1 !== 7) { + $ERROR('#7: .7E1 === 7'); +} + +//CHECK#8 +if (.8E1 !== 8) { + $ERROR('#8: .8E1 === 8'); +} + +//CHECK#9 +if (.9E1 !== 9) { + $ERROR('#9: .9E1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js new file mode 100644 index 000000000..513868760 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (.0e-1 !== 0) { + $ERROR('#0: .0e-1 === 0'); +} + +//CHECK#1 +if (.1e-1 !== 0.01) { + $ERROR('#1: .1e-1 === 0.01'); +} + +//CHECK#2 +if (.2e-1 !== 0.02) { + $ERROR('#2: .2e-1 === 0.02'); +} + +//CHECK#3 +if (.3e-1 !== 0.03) { + $ERROR('#3: .3e-1 === 0.03'); +} + +//CHECK#4 +if (.4e-1 !== 0.04) { + $ERROR('#4: .4e-1 === 0.04'); +} + +//CHECK#5 +if (.5e-1 !== 0.05) { + $ERROR('#5: .5e-1 === 0.05'); +} + +//CHECK#6 +if (.6e-1 !== 0.06) { + $ERROR('#6: .6e-1 === 0.06'); +} + +//CHECK#7 +if (.7e-1 !== 0.07) { + $ERROR('#7: .7e-1 === 0.07'); +} + +//CHECK#8 +if (.8e-1 !== 0.08) { + $ERROR('#8: .8e-1 === 0.08'); +} + +//CHECK#9 +if (.9e-1 !== 0.09) { + $ERROR('#9: .9e-1 === 0.09'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js new file mode 100644 index 000000000..88ddf9858 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (.0E-1 !== 0) { + $ERROR('#0: .0E-1 === 0'); +} + +//CHECK#1 +if (.1E-1 !== 0.01) { + $ERROR('#1: .1E-1 === 0.01'); +} + +//CHECK#2 +if (.2E-1 !== 0.02) { + $ERROR('#2: .2E-1 === 0.02'); +} + +//CHECK#3 +if (.3E-1 !== 0.03) { + $ERROR('#3: .3E-1 === 0.03'); +} + +//CHECK#4 +if (.4E-1 !== 0.04) { + $ERROR('#4: .4E-1 === 0.04'); +} + +//CHECK#5 +if (.5E-1 !== 0.05) { + $ERROR('#5: .5E-1 === 0.05'); +} + +//CHECK#6 +if (.6E-1 !== 0.06) { + $ERROR('#6: .6E-1 === 0.06'); +} + +//CHECK#7 +if (.7E-1 !== 0.07) { + $ERROR('#7: .7E-1 === 0.07'); +} + +//CHECK#8 +if (.8E-1 !== 0.08) { + $ERROR('#8: .8E-1 === 0.08'); +} + +//CHECK#9 +if (.9E-1 !== 0.09) { + $ERROR('#9: .9E-1 === 0.09'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js new file mode 100644 index 000000000..881511a10 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (.0e+1 !== 0) { + $ERROR('#0: .0e+1 === 0'); +} + +//CHECK#1 +if (.1e+1 !== 1) { + $ERROR('#1: .1e+1 === 1'); +} + +//CHECK#2 +if (.2e+1 !== 2) { + $ERROR('#2: .2e+1 === 2'); +} + +//CHECK#3 +if (.3e+1 !== 3) { + $ERROR('#3: .3e+1 === 3'); +} + +//CHECK#4 +if (.4e+1 !== 4) { + $ERROR('#4: .4e+1 === 4'); +} + +//CHECK#5 +if (.5e+1 !== 5) { + $ERROR('#5: .5e+1 === 5'); +} + +//CHECK#6 +if (.6e+1 !== 6) { + $ERROR('#6: .6e+1 === 6'); +} + +//CHECK#7 +if (.7e+1 !== 7) { + $ERROR('#7: .7e+1 === 7'); +} + +//CHECK#8 +if (.8e+1 !== 8) { + $ERROR('#8: .8e+1 === 8'); +} + +//CHECK#9 +if (.9e+1 !== 9) { + $ERROR('#9: .9e+1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js new file mode 100644 index 000000000..8b206eee7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (.0E+1 !== 0) { + $ERROR('#0: .0E+1 === 0'); +} + +//CHECK#1 +if (.1E+1 !== 1) { + $ERROR('#1: .1E+1 === 1'); +} + +//CHECK#2 +if (.2E+1 !== 2) { + $ERROR('#2: .2E+1 === 2'); +} + +//CHECK#3 +if (.3E+1 !== 3) { + $ERROR('#3: .3E+1 === 3'); +} + +//CHECK#4 +if (.4E+1 !== 4) { + $ERROR('#4: .4E+1 === 4'); +} + +//CHECK#5 +if (.5E+1 !== 5) { + $ERROR('#5: .5E+1 === 5'); +} + +//CHECK#6 +if (.6E+1 !== 6) { + $ERROR('#6: .6E+1 === 6'); +} + +//CHECK#7 +if (.7E+1 !== 7) { + $ERROR('#7: .7E+1 === 7'); +} + +//CHECK#8 +if (.8E+1 !== 8) { + $ERROR('#8: .8E+1 === 8'); +} + +//CHECK#9 +if (.9E+1 !== 9) { + $ERROR('#9: .9E+1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js new file mode 100644 index 000000000..a3701e00c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (.0e0 !== 0.0) { + $ERROR('#0: .0e0 === 0.0'); +} + +//CHECK#1 +if (.1e0 !== 0.1) { + $ERROR('#1: .1e0 === 0.1'); +} + +//CHECK#2 +if (.2e0 !== 0.2) { + $ERROR('#2: .2e0 === 0.2'); +} + +//CHECK#3 +if (.3e0 !== 0.3) { + $ERROR('#3: .3e0 === 0.3'); +} + +//CHECK#4 +if (.4e0 !== 0.4) { + $ERROR('#4: .4e0 === 0.4'); +} + +//CHECK#5 +if (.5e0 !== 0.5) { + $ERROR('#5: .5e0 === 0.5'); +} + +//CHECK#6 +if (.6e0 !== 0.6) { + $ERROR('#6: .6e0 === 0.6'); +} + +//CHECK#7 +if (.7e0 !== 0.7) { + $ERROR('#7: .7e0 === 0.7'); +} + +//CHECK#8 +if (.8e0 !== 0.8) { + $ERROR('#8: .8e0 === 0.8'); +} + +//CHECK#9 +if (.9e0 !== 0.9) { + $ERROR('#9: .9e0 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js new file mode 100644 index 000000000..d8bca29e1 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (.0E0 !== 0.0) { + $ERROR('#0: .0E0 === 0.0'); +} + +//CHECK#1 +if (.1E0 !== 0.1) { + $ERROR('#1: .1E0 === 0.1'); +} + +//CHECK#2 +if (.2E0 !== 0.2) { + $ERROR('#2: .2E0 === 0.2'); +} + +//CHECK#3 +if (.3E0 !== 0.3) { + $ERROR('#3: .3E0 === 0.3'); +} + +//CHECK#4 +if (.4E0 !== 0.4) { + $ERROR('#4: .4E0 === 0.4'); +} + +//CHECK#5 +if (.5E0 !== 0.5) { + $ERROR('#5: .5E0 === 0.5'); +} + +//CHECK#6 +if (.6E0 !== 0.6) { + $ERROR('#6: .6E0 === 0.6'); +} + +//CHECK#7 +if (.7E0 !== 0.7) { + $ERROR('#7: .7E0 === 0.7'); +} + +//CHECK#8 +if (.8E0 !== 0.8) { + $ERROR('#8: .8E0 === 0.8'); +} + +//CHECK#9 +if (.9E0 !== 0.9) { + $ERROR('#9: .9E0 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js new file mode 100644 index 000000000..0e34b120b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js + * @description DecimalIntegerLiteral :: 0, NoNZeroDigit + */ + +//CHECK#0 +if (0. !== 0) { + $ERROR('#0: 0. === 0'); +} + +//CHECK#1 +if (1. !== 1) { + $ERROR('#1: 1. === 1'); +} + +//CHECK#2 +if (2. !== 2) { + $ERROR('#2: 2. === 2'); +} + +//CHECK#3 +if (3. !== 3) { + $ERROR('#3: 3. === 3'); +} + +//CHECK#4 +if (4. !== 4) { + $ERROR('#4: 4. === 4'); +} + +//CHECK#5 +if (5. !== 5) { + $ERROR('#5: 5. === 5'); +} + +//CHECK#6 +if (6. !== 6) { + $ERROR('#6: 6. === 6'); +} + +//CHECK#7 +if (7. !== 7) { + $ERROR('#7: 7. === 7'); +} + +//CHECK#8 +if (8. !== 8) { + $ERROR('#8: 8. === 8'); +} + +//CHECK#9 +if (9. !== 9) { + $ERROR('#9: 9. === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js new file mode 100644 index 000000000..6dcdd78e3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js + * @description DecimalIntegerLiteral :: NoNZeroDigit DecimalDigigts + */ + +//CHECK#1 +if (11. !== 11) { + $ERROR('#1: 11. === 11'); +} + +//CHECK#2 +if (22. !== 22) { + $ERROR('#2: 22. === 22'); +} + +//CHECK#3 +if (33. !== 33) { + $ERROR('#3: 33. === 33'); +} + +//CHECK#4 +if (44. !== 44) { + $ERROR('#4: 44. === 44'); +} + +//CHECK#5 +if (55. !== 55) { + $ERROR('#5: 55. === 55'); +} + +//CHECK#6 +if (66. !== 66) { + $ERROR('#6: 66. === 66'); +} + +//CHECK#7 +if (77. !== 77) { + $ERROR('#7: 77. === 77'); +} + +//CHECK#8 +if (88. !== 88) { + $ERROR('#8: 88. === 88'); +} + +//CHECK#9 +if (99. !== 99) { + $ERROR('#9: 99. === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js new file mode 100644 index 000000000..5c0a5ffa7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js + * @description After DecimalIntegerLiteral. used ZeroDigit + */ + +//CHECK#0 +if (0.0 !== 0) { + $ERROR('#0: 0.0 === 0'); +} + +//CHECK#1 +if (1.0 !== 1) { + $ERROR('#1: 1.0 === 1'); +} + +//CHECK#2 +if (2.0 !== 2) { + $ERROR('#2: 2.0 === 2'); +} + +//CHECK#3 +if (3.0 !== 3) { + $ERROR('#3: 3.0 === 3'); +} + +//CHECK#4 +if (4.0 !== 4) { + $ERROR('#4: 4.0 === 4'); +} + +//CHECK#5 +if (5.0 !== 5) { + $ERROR('#5: 5.0 === 5'); +} + +//CHECK#6 +if (6.0 !== 6) { + $ERROR('#6: 6.0 === 6'); +} + +//CHECK#7 +if (7.0 !== 7) { + $ERROR('#7: 7.0 === 7'); +} + +//CHECK#8 +if (8.0 !== 8) { + $ERROR('#8: 8.0 === 8'); +} + +//CHECK#9 +if (9.0 !== 9) { + $ERROR('#9: 9.0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js new file mode 100644 index 000000000..110c931e5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js + * @description After DecimalIntegerLiteral. used ZeroDigits + */ + +//CHECK#0 +if (0.00 !== 0) { + $ERROR('#0: 0.00 === 0'); +} + +//CHECK#1 +if (1.00 !== 1) { + $ERROR('#1: 1.00 === 1'); +} + +//CHECK#2 +if (2.00 !== 2) { + $ERROR('#2: 2.00 === 2'); +} + +//CHECK#3 +if (3.00 !== 3) { + $ERROR('#3: 3.00 === 3'); +} + +//CHECK#4 +if (4.00 !== 4) { + $ERROR('#4: 4.00 === 4'); +} + +//CHECK#5 +if (5.00 !== 5) { + $ERROR('#5: 5.00 === 5'); +} + +//CHECK#6 +if (6.00 !== 6) { + $ERROR('#6: 6.00 === 6'); +} + +//CHECK#7 +if (7.00 !== 7) { + $ERROR('#7: 7.00 === 7'); +} + +//CHECK#8 +if (8.00 !== 8) { + $ERROR('#8: 8.00 === 8'); +} + +//CHECK#9 +if (9.00 !== 9) { + $ERROR('#9: 9.00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js new file mode 100644 index 000000000..fe293b95b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js + * @description After DecimalIntegerLiteral. used NoNZeroDigit + */ + +//CHECK#0 +if (0.0 !== 0.0) { + $ERROR('#0: 0.0 === 0.0'); +} + +//CHECK#1 +if (1.1 !== 1.1) { + $ERROR('#1: 1.1 === 1.1'); +} + +//CHECK#2 +if (2.2 !== 2.2) { + $ERROR('#2: 2.2 === 2.2'); +} + +//CHECK#3 +if (3.3 !== 3.3) { + $ERROR('#3: 3.3 === 3.3'); +} + +//CHECK#4 +if (4.4 !== 4.4) { + $ERROR('#4: 4.4 === 4.4'); +} + +//CHECK#5 +if (5.5 !== 5.5) { + $ERROR('#5: 5.5 === 5.5'); +} + +//CHECK#6 +if (6.6 !== 6.6) { + $ERROR('#6: 6.6 === 6.6'); +} + +//CHECK#7 +if (7.7 !== 7.7) { + $ERROR('#7: 7.7 === 7.7'); +} + +//CHECK#8 +if (8.8 !== 8.8) { + $ERROR('#8: 8..8 === 8.8'); +} + +//CHECK#9 +if (9.9 !== 9.9) { + $ERROR('#9: 9.9 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js new file mode 100644 index 000000000..e0a6edba5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0.e1 !== 0) { + $ERROR('#0: 0.e1 === 0'); +} + +//CHECK#1 +if (1.e1 !== 10) { + $ERROR('#1: 1.e1 === 10'); +} + +//CHECK#2 +if (2.e1 !== 20) { + $ERROR('#2: 2.e1 === 20'); +} + +//CHECK#3 +if (3.e1 !== 30) { + $ERROR('#3: 3.e1 === 30'); +} + +//CHECK#4 +if (4.e1 !== 40) { + $ERROR('#4: 4.e1 === 40'); +} + +//CHECK#5 +if (5.e1 !== 50) { + $ERROR('#5: 5.e1 === 50'); +} + +//CHECK#6 +if (6.e1 !== 60) { + $ERROR('#6: 6.e1 === 60'); +} + +//CHECK#7 +if (7.e1 !== 70) { + $ERROR('#7: 7.e1 === 70'); +} + +//CHECK#8 +if (8.e1 !== 80) { + $ERROR('#8: 8.e1 === 80'); +} + +//CHECK#9 +if (9.e1 !== 90) { + $ERROR('#9: 9.e1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js new file mode 100644 index 000000000..034d2c548 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0.E1 !== 0) { + $ERROR('#0: 0.E1 === 0'); +} + +//CHECK#1 +if (1.E1 !== 10) { + $ERROR('#1: 1.E1 === 10'); +} + +//CHECK#2 +if (2.E1 !== 20) { + $ERROR('#2: 2.E1 === 20'); +} + +//CHECK#3 +if (3.E1 !== 30) { + $ERROR('#3: 3.E1 === 30'); +} + +//CHECK#4 +if (4.E1 !== 40) { + $ERROR('#4: 4.E1 === 40'); +} + +//CHECK#5 +if (5.E1 !== 50) { + $ERROR('#5: 5.E1 === 50'); +} + +//CHECK#6 +if (6.E1 !== 60) { + $ERROR('#6: 6.E1 === 60'); +} + +//CHECK#7 +if (7.E1 !== 70) { + $ERROR('#7: 7.E1 === 70'); +} + +//CHECK#8 +if (8.E1 !== 80) { + $ERROR('#8: 8.E1 === 80'); +} + +//CHECK#9 +if (9.E1 !== 90) { + $ERROR('#9: 9.E1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js new file mode 100644 index 000000000..a60c83d58 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0.e-1 !== 0) { + $ERROR('#0: 0.e-1 === 0'); +} + +//CHECK#1 +if (1.e-1 !== 0.1) { + $ERROR('#1: 1.e-1 === 0.1'); +} + +//CHECK#2 +if (2.e-1 !== 0.2) { + $ERROR('#2: 2.e-1 === 0.2'); +} + +//CHECK#3 +if (3.e-1 !== 0.3) { + $ERROR('#3: 3.e-1 === 0.3'); +} + +//CHECK#4 +if (4.e-1 !== 0.4) { + $ERROR('#4: 4.e-1 === 0.4'); +} + +//CHECK#5 +if (5.e-1 !== 0.5) { + $ERROR('#5: 5.e-1 === 0.5'); +} + +//CHECK#6 +if (6.e-1 !== 0.6) { + $ERROR('#6: 6.e-1 === 0.6'); +} + +//CHECK#7 +if (7.e-1 !== 0.7) { + $ERROR('#7: 7.e-1 === 0.7'); +} + +//CHECK#8 +if (8.e-1 !== 0.8) { + $ERROR('#8: 8.e-1 === 0.8'); +} + +//CHECK#9 +if (9.e-1 !== 0.9) { + $ERROR('#9: 9.e-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js new file mode 100644 index 000000000..9dc5be7a2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0.E-1 !== 0) { + $ERROR('#0: 0.E-1 === 0'); +} + +//CHECK#1 +if (1.E-1 !== 0.1) { + $ERROR('#1: 1.E-1 === 0.1'); +} + +//CHECK#2 +if (2.E-1 !== 0.2) { + $ERROR('#2: 2.E-1 === 0.2'); +} + +//CHECK#3 +if (3.E-1 !== 0.3) { + $ERROR('#3: 3.E-1 === 0.3'); +} + +//CHECK#4 +if (4.E-1 !== 0.4) { + $ERROR('#4: 4.E-1 === 0.4'); +} + +//CHECK#5 +if (5.E-1 !== 0.5) { + $ERROR('#5: 5.E-1 === 0.5'); +} + +//CHECK#6 +if (6.E-1 !== 0.6) { + $ERROR('#6: 6.E-1 === 0.6'); +} + +//CHECK#7 +if (7.E-1 !== 0.7) { + $ERROR('#7: 7.E-1 === 0.7'); +} + +//CHECK#8 +if (8.E-1 !== 0.8) { + $ERROR('#8: 8.E-1 === 0.8'); +} + +//CHECK#9 +if (9.E-1 !== 0.9) { + $ERROR('#9: 9.E-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js new file mode 100644 index 000000000..9b2e9b820 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0.e+1 !== 0) { + $ERROR('#0: 0.e+1 === 0'); +} + +//CHECK#1 +if (1.e+1 !== 10) { + $ERROR('#1: 1.e+1 === 10'); +} + +//CHECK#2 +if (2.e+1 !== 20) { + $ERROR('#2: 2.e+1 === 20'); +} + +//CHECK#3 +if (3.e+1 !== 30) { + $ERROR('#3: 3.e+1 === 30'); +} + +//CHECK#4 +if (4.e+1 !== 40) { + $ERROR('#4: 4.e+1 === 40'); +} + +//CHECK#5 +if (5.e+1 !== 50) { + $ERROR('#5: 5.e+1 === 50'); +} + +//CHECK#6 +if (6.e+1 !== 60) { + $ERROR('#6: 6.e+1 === 60'); +} + +//CHECK#7 +if (7.e+1 !== 70) { + $ERROR('#7: 7.e+1 === 70'); +} + +//CHECK#8 +if (8.e+1 !== 80) { + $ERROR('#8: 8.e+1 === 80'); +} + +//CHECK#9 +if (9.e+1 !== 90) { + $ERROR('#9: 9.e+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js new file mode 100644 index 000000000..33c8a84c9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0.E+1 !== 0) { + $ERROR('#0: 0.E+1 === 0'); +} + +//CHECK#1 +if (1.E+1 !== 10) { + $ERROR('#1: 1.E+1 === 10'); +} + +//CHECK#2 +if (2.E+1 !== 20) { + $ERROR('#2: 2.E+1 === 20'); +} + +//CHECK#3 +if (3.E+1 !== 30) { + $ERROR('#3: 3.E+1 === 30'); +} + +//CHECK#4 +if (4.E+1 !== 40) { + $ERROR('#4: 4.E+1 === 40'); +} + +//CHECK#5 +if (5.E+1 !== 50) { + $ERROR('#5: 5.E+1 === 50'); +} + +//CHECK#6 +if (6.E+1 !== 60) { + $ERROR('#6: 6.E+1 === 60'); +} + +//CHECK#7 +if (7.E+1 !== 70) { + $ERROR('#7: 7.E+1 === 70'); +} + +//CHECK#8 +if (8.E+1 !== 80) { + $ERROR('#8: 8.E+1 === 80'); +} + +//CHECK#9 +if (9.E+1 !== 90) { + $ERROR('#9: 9.E+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js new file mode 100644 index 000000000..628581d66 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0.e0 !== 0) { + $ERROR('#0: 0.e0 === 0'); +} + +//CHECK#1 +if (1.e0 !== 1) { + $ERROR('#1: 1.e0 === 1'); +} + +//CHECK#2 +if (2.e0 !== 2) { + $ERROR('#2: 2.e0 === 2'); +} + +//CHECK#3 +if (3.e0 !== 3) { + $ERROR('#3: 3.e0 === 3'); +} + +//CHECK#4 +if (4.e0 !== 4) { + $ERROR('#4: 4.e0 === 4'); +} + +//CHECK#5 +if (5.e0 !== 5) { + $ERROR('#5: 5.e0 === 5'); +} + +//CHECK#6 +if (6.e0 !== 6) { + $ERROR('#6: 6.e0 === 6'); +} + +//CHECK#7 +if (7.e0 !== 7) { + $ERROR('#7: 7.e0 === 7'); +} + +//CHECK#8 +if (8.e0 !== 8) { + $ERROR('#8: 8.e0 === 8'); +} + +//CHECK#9 +if (9.e0 !== 9) { + $ERROR('#9: 9.e0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js new file mode 100644 index 000000000..b6f249124 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0.E0 !== 0) { + $ERROR('#0: 0.E0 === 0'); +} + +//CHECK#1 +if (1.E0 !== 1) { + $ERROR('#1: 1.E0 === 1'); +} + +//CHECK#2 +if (2.E0 !== 2) { + $ERROR('#2: 2.E0 === 2'); +} + +//CHECK#3 +if (3.E0 !== 3) { + $ERROR('#3: 3.E0 === 3'); +} + +//CHECK#4 +if (4.E0 !== 4) { + $ERROR('#4: 4.E0 === 4'); +} + +//CHECK#5 +if (5.E0 !== 5) { + $ERROR('#5: 5.E0 === 5'); +} + +//CHECK#6 +if (6.E0 !== 6) { + $ERROR('#6: 6.E0 === 6'); +} + +//CHECK#7 +if (7.E0 !== 7) { + $ERROR('#7: 7.E0 === 7'); +} + +//CHECK#8 +if (8.E0 !== 8) { + $ERROR('#8: 8.E0 === 8'); +} + +//CHECK#9 +if (9.E0 !== 9) { + $ERROR('#9: 9.E0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js new file mode 100644 index 000000000..15ad5b224 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0.0e1 !== 0) { + $ERROR('#0: 0.0e1 === 0'); +} + +//CHECK#1 +if (1.1e1 !== 11) { + $ERROR('#1: 1.1e1 === 11'); +} + +//CHECK#2 +if (2.2e1 !== 22) { + $ERROR('#2: 2.2e1 === 22'); +} + +//CHECK#3 +if (3.3e1 !== 33) { + $ERROR('#3: 3.3e1 === 33'); +} + +//CHECK#4 +if (4.4e1 !== 44) { + $ERROR('#4: 4.4e1 === 44'); +} + +//CHECK#5 +if (5.5e1 !== 55) { + $ERROR('#5: 5.5e1 === 55'); +} + +//CHECK#6 +if (6.6e1 !== 66) { + $ERROR('#6: 6.e1 === 66'); +} + +//CHECK#7 +if (7.7e1 !== 77) { + $ERROR('#7: 7.7e1 === 77'); +} + +//CHECK#8 +if (8.8e1 !== 88) { + $ERROR('#8: 8.8e1 === 88'); +} + +//CHECK#9 +if (9.9e1 !== 99) { + $ERROR('#9: 9.9e1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js new file mode 100644 index 000000000..a3a67a30e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0.0E1 !== 0) { + $ERROR('#0: 0.0E1 === 0'); +} + +//CHECK#1 +if (1.1E1 !== 11) { + $ERROR('#1: 1.1E1 === 11'); +} + +//CHECK#2 +if (2.2E1 !== 22) { + $ERROR('#2: 2.2E1 === 22'); +} + +//CHECK#3 +if (3.3E1 !== 33) { + $ERROR('#3: 3.3E1 === 33'); +} + +//CHECK#4 +if (4.4E1 !== 44) { + $ERROR('#4: 4.4E1 === 44'); +} + +//CHECK#5 +if (5.5E1 !== 55) { + $ERROR('#5: 5.5E1 === 55'); +} + +//CHECK#6 +if (6.6E1 !== 66) { + $ERROR('#6: 6.E1 === 66'); +} + +//CHECK#7 +if (7.7E1 !== 77) { + $ERROR('#7: 7.7E1 === 77'); +} + +//CHECK#8 +if (8.8E1 !== 88) { + $ERROR('#8: 8.8E1 === 88'); +} + +//CHECK#9 +if (9.9E1 !== 99) { + $ERROR('#9: 9.9E1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js new file mode 100644 index 000000000..fef945e47 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0.0e-1 !== 0) { + $ERROR('#0: 0.0e-1 === 0'); +} + +//CHECK#1 +if (1.1e-1 !== 0.11) { + $ERROR('#1: 1.1e-1 === 0.11'); +} + +//CHECK#2 +if (2.2e-1 !== 0.22) { + $ERROR('#2: 2.2e-1 === 0.22'); +} + +//CHECK#3 +if (3.3e-1 !== 0.33) { + $ERROR('#3: 3.3e-1 === 0.33'); +} + +//CHECK#4 +if (4.4e-1 !== 0.44) { + $ERROR('#4: 4.4e-1 === 0.44'); +} + +//CHECK#5 +if (5.5e-1 !== 0.55) { + $ERROR('#5: 5.5e-1 === 0.55'); +} + +//CHECK#6 +if (6.6e-1 !== 0.66) { + $ERROR('#6: 6.e-1 === 0.66'); +} + +//CHECK#7 +if (7.7e-1 !== 0.77) { + $ERROR('#7: 7.7e-1 === 0.77'); +} + +//CHECK#8 +if (8.8e-1 !== 0.88) { + $ERROR('#8: 8.8e-1 === 0.88'); +} + +//CHECK#9 +if (9.9e-1 !== 0.99) { + $ERROR('#9: 9.9e-1 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js new file mode 100644 index 000000000..f68532fd8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0.0E-1 !== 0) { + $ERROR('#0: 0.0E-1 === 0'); +} + +//CHECK#1 +if (1.1E-1 !== 0.11) { + $ERROR('#1: 1.1E-1 === 0.11'); +} + +//CHECK#2 +if (2.2E-1 !== 0.22) { + $ERROR('#2: 2.2E-1 === 0.22'); +} + +//CHECK#3 +if (3.3E-1 !== 0.33) { + $ERROR('#3: 3.3E-1 === 0.33'); +} + +//CHECK#4 +if (4.4E-1 !== 0.44) { + $ERROR('#4: 4.4E-1 === 0.44'); +} + +//CHECK#5 +if (5.5E-1 !== 0.55) { + $ERROR('#5: 5.5E-1 === 0.55'); +} + +//CHECK#6 +if (6.6E-1 !== 0.66) { + $ERROR('#6: 6.E-1 === 0.66'); +} + +//CHECK#7 +if (7.7E-1 !== 0.77) { + $ERROR('#7: 7.7E-1 === 0.77'); +} + +//CHECK#8 +if (8.8E-1 !== 0.88) { + $ERROR('#8: 8.8E-1 === 0.88'); +} + +//CHECK#9 +if (9.9E-1 !== 0.99) { + $ERROR('#9: 9.9E-1 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js new file mode 100644 index 000000000..161105928 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0.0e+1 !== 0) { + $ERROR('#0: 0.0e+1 === 0'); +} + +//CHECK#1 +if (1.1e+1 !== 11) { + $ERROR('#1: 1.1e+1 === 11'); +} + +//CHECK#2 +if (2.2e+1 !== 22) { + $ERROR('#2: 2.2e+1 === 22'); +} + +//CHECK#3 +if (3.3e+1 !== 33) { + $ERROR('#3: 3.3e+1 === 33'); +} + +//CHECK#4 +if (4.4e+1 !== 44) { + $ERROR('#4: 4.4e+1 === 44'); +} + +//CHECK#5 +if (5.5e+1 !== 55) { + $ERROR('#5: 5.5e+1 === 55'); +} + +//CHECK#6 +if (6.6e+1 !== 66) { + $ERROR('#6: 6.e+1 === 66'); +} + +//CHECK#7 +if (7.7e+1 !== 77) { + $ERROR('#7: 7.7e+1 === 77'); +} + +//CHECK#8 +if (8.8e+1 !== 88) { + $ERROR('#8: 8.8e+1 === 88'); +} + +//CHECK#9 +if (9.9e+1 !== 99) { + $ERROR('#9: 9.9e+1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js new file mode 100644 index 000000000..5d28f6609 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0.0E+1 !== 0) { + $ERROR('#0: 0.0E+1 === 0'); +} + +//CHECK#1 +if (1.1E+1 !== 11) { + $ERROR('#1: 1.1E+1 === 11'); +} + +//CHECK#2 +if (2.2E+1 !== 22) { + $ERROR('#2: 2.2E+1 === 22'); +} + +//CHECK#3 +if (3.3E+1 !== 33) { + $ERROR('#3: 3.3E+1 === 33'); +} + +//CHECK#4 +if (4.4E+1 !== 44) { + $ERROR('#4: 4.4E+1 === 44'); +} + +//CHECK#5 +if (5.5E+1 !== 55) { + $ERROR('#5: 5.5E+1 === 55'); +} + +//CHECK#6 +if (6.6E+1 !== 66) { + $ERROR('#6: 6.E+1 === 66'); +} + +//CHECK#7 +if (7.7E+1 !== 77) { + $ERROR('#7: 7.7E+1 === 77'); +} + +//CHECK#8 +if (8.8E+1 !== 88) { + $ERROR('#8: 8.8E+1 === 88'); +} + +//CHECK#9 +if (9.9E+1 !== 99) { + $ERROR('#9: 9.9E+1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js new file mode 100644 index 000000000..b5ebe39d4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0.0e0 !== 0.0) { + $ERROR('#0: 0.0e0 === 0.0'); +} + +//CHECK#1 +if (1.1e0 !== 1.1) { + $ERROR('#1: 1.1e0 === 1.1'); +} + +//CHECK#2 +if (2.2e0 !== 2.2) { + $ERROR('#2: 2.2e0 === 2.2'); +} + +//CHECK#3 +if (3.3e0 !== 3.3) { + $ERROR('#3: 3.3e0 === 3.3'); +} + +//CHECK#4 +if (4.4e0 !== 4.4) { + $ERROR('#4: 4.4e0 === 4.4'); +} + +//CHECK#5 +if (5.5e0 !== 5.5) { + $ERROR('#5: 5.5e0 === 5.5'); +} + +//CHECK#6 +if (6.6e0 !== 6.6) { + $ERROR('#6: 6.e0 === 6.6'); +} + +//CHECK#7 +if (7.7e0 !== 7.7) { + $ERROR('#7: 7.7e0 === 7.7'); +} + +//CHECK#8 +if (8.8e0 !== 8.8) { + $ERROR('#8: 8.8e0 === 8.8'); +} + +//CHECK#9 +if (9.9e0 !== 9.9) { + $ERROR('#9: 9.9e0 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js new file mode 100644 index 000000000..36b643364 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0.0E0 !== 0.0) { + $ERROR('#0: 0.0E0 === 0.0'); +} + +//CHECK#1 +if (1.1E0 !== 1.1) { + $ERROR('#1: 1.1E0 === 1.1'); +} + +//CHECK#2 +if (2.2E0 !== 2.2) { + $ERROR('#2: 2.2E0 === 2.2'); +} + +//CHECK#3 +if (3.3E0 !== 3.3) { + $ERROR('#3: 3.3E0 === 3.3'); +} + +//CHECK#4 +if (4.4E0 !== 4.4) { + $ERROR('#4: 4.4E0 === 4.4'); +} + +//CHECK#5 +if (5.5E0 !== 5.5) { + $ERROR('#5: 5.5E0 === 5.5'); +} + +//CHECK#6 +if (6.6E0 !== 6.6) { + $ERROR('#6: 6.E0 === 6.6'); +} + +//CHECK#7 +if (7.7E0 !== 7.7) { + $ERROR('#7: 7.7E0 === 7.7'); +} + +//CHECK#8 +if (8.8E0 !== 8.8) { + $ERROR('#8: 8.8E0 === 8.8'); +} + +//CHECK#9 +if (9.9E0 !== 9.9) { + $ERROR('#9: 9.9E0 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js new file mode 100644 index 000000000..eaed76725 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js new file mode 100644 index 000000000..306ed8ba2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js new file mode 100644 index 000000000..b7c5e5a9f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e-1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js new file mode 100644 index 000000000..fb21413d4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E-1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js new file mode 100644 index 000000000..89719f0f7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e+1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js new file mode 100644 index 000000000..533e23bc4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E+1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js new file mode 100644 index 000000000..d6475e50f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js + * @description ExponentPart :: e 0 + * @negative + */ + +//CHECK#1 +e0 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js new file mode 100644 index 000000000..89e284f4f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js + * @description ExponentPart :: E 0 + * @negative + */ + +//CHECK#1 +E0 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js new file mode 100644 index 000000000..a925aaed9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e01 !== 0) { + $ERROR('#0: 0e01 === 0'); +} + +//CHECK#1 +if (1e01 !== 10) { + $ERROR('#1: 1e01 === 10'); +} + +//CHECK#2 +if (2e01 !== 20) { + $ERROR('#2: 2e01 === 20'); +} + +//CHECK#3 +if (3e01 !== 30) { + $ERROR('#3: 3e01 === 30'); +} + +//CHECK#4 +if (4e01 !== 40) { + $ERROR('#4: 4e01 === 40'); +} + +//CHECK#5 +if (5e01 !== 50) { + $ERROR('#5: 5e01 === 50'); +} + +//CHECK#6 +if (6e01 !== 60) { + $ERROR('#6: 6e01 === 60'); +} + +//CHECK#7 +if (7e01 !== 70) { + $ERROR('#7: 7e01 === 70'); +} + +//CHECK#8 +if (8e01 !== 80) { + $ERROR('#8: 8e01 === 80'); +} + +//CHECK#9 +if (9e01 !== 90) { + $ERROR('#9: 9e01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js new file mode 100644 index 000000000..bfc6f4eee --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E01 !== 0) { + $ERROR('#0: 0E01 === 0'); +} + +//CHECK#1 +if (1E01 !== 10) { + $ERROR('#1: 1E01 === 10'); +} + +//CHECK#2 +if (2E01 !== 20) { + $ERROR('#2: 2E01 === 20'); +} + +//CHECK#3 +if (3E01 !== 30) { + $ERROR('#3: 3E01 === 30'); +} + +//CHECK#4 +if (4E01 !== 40) { + $ERROR('#4: 4E01 === 40'); +} + +//CHECK#5 +if (5E01 !== 50) { + $ERROR('#5: 5E01 === 50'); +} + +//CHECK#6 +if (6E01 !== 60) { + $ERROR('#6: 6E01 === 60'); +} + +//CHECK#7 +if (7E01 !== 70) { + $ERROR('#7: 7E01 === 70'); +} + +//CHECK#8 +if (8E01 !== 80) { + $ERROR('#8: 8E01 === 80'); +} + +//CHECK#9 +if (9E01 !== 90) { + $ERROR('#9: 9E01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js new file mode 100644 index 000000000..15f7bf7bd --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e-01 !== 0) { + $ERROR('#0: 0e-01 === 0'); +} + +//CHECK#1 +if (1e-01 !== 0.1) { + $ERROR('#1: 1e-01 === 0.1'); +} + +//CHECK#2 +if (2e-01 !== 0.2) { + $ERROR('#2: 2e-01 === 0.2'); +} + +//CHECK#3 +if (3e-01 !== 0.3) { + $ERROR('#3: 3e-01 === 0.3'); +} + +//CHECK#4 +if (4e-01 !== 0.4) { + $ERROR('#4: 4e-01 === 0.4'); +} + +//CHECK#5 +if (5e-01 !== 0.5) { + $ERROR('#5: 5e-01 === 0.5'); +} + +//CHECK#6 +if (6e-01 !== 0.6) { + $ERROR('#6: 6e-01 === 0.6'); +} + +//CHECK#7 +if (7e-01 !== 0.7) { + $ERROR('#7: 7e-01 === 0.7'); +} + +//CHECK#8 +if (8e-01 !== 0.8) { + $ERROR('#8: 8e-01 === 0.8'); +} + +//CHECK#9 +if (9e-01 !== 0.9) { + $ERROR('#9: 9e-01 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js new file mode 100644 index 000000000..2682b8f0e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E-01 !== 0) { + $ERROR('#0: 0E-01 === 0'); +} + +//CHECK#1 +if (1E-01 !== 0.1) { + $ERROR('#1: 1E-01 === 0.1'); +} + +//CHECK#2 +if (2E-01 !== 0.2) { + $ERROR('#2: 2E-01 === 0.2'); +} + +//CHECK#3 +if (3E-01 !== 0.3) { + $ERROR('#3: 3E-01 === 0.3'); +} + +//CHECK#4 +if (4E-01 !== 0.4) { + $ERROR('#4: 4E-01 === 0.4'); +} + +//CHECK#5 +if (5E-01 !== 0.5) { + $ERROR('#5: 5E-01 === 0.5'); +} + +//CHECK#6 +if (6E-01 !== 0.6) { + $ERROR('#6: 6E-01 === 0.6'); +} + +//CHECK#7 +if (7E-01 !== 0.7) { + $ERROR('#7: 7E-01 === 0.7'); +} + +//CHECK#8 +if (8E-01 !== 0.8) { + $ERROR('#8: 8E-01 === 0.8'); +} + +//CHECK#9 +if (9E-01 !== 0.9) { + $ERROR('#9: 9E-01 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js new file mode 100644 index 000000000..386daa930 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e+01 !== 0) { + $ERROR('#0: 0e+01 === 0'); +} + +//CHECK#1 +if (1e+01 !== 10) { + $ERROR('#1: 1e+01 === 10'); +} + +//CHECK#2 +if (2e+01 !== 20) { + $ERROR('#2: 2e+01 === 20'); +} + +//CHECK#3 +if (3e+01 !== 30) { + $ERROR('#3: 3e+01 === 30'); +} + +//CHECK#4 +if (4e+01 !== 40) { + $ERROR('#4: 4e+01 === 40'); +} + +//CHECK#5 +if (5e+01 !== 50) { + $ERROR('#5: 5e+01 === 50'); +} + +//CHECK#6 +if (6e+01 !== 60) { + $ERROR('#6: 6e+01 === 60'); +} + +//CHECK#7 +if (7e+01 !== 70) { + $ERROR('#7: 7e+01 === 70'); +} + +//CHECK#8 +if (8e+01 !== 80) { + $ERROR('#8: 8e+01 === 80'); +} + +//CHECK#9 +if (9e+01 !== 90) { + $ERROR('#9: 9e+01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js new file mode 100644 index 000000000..df360f5ea --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E+01 !== 0) { + $ERROR('#0: 0E+01 === 0'); +} + +//CHECK#1 +if (1E+01 !== 10) { + $ERROR('#1: 1E+01 === 10'); +} + +//CHECK#2 +if (2E+01 !== 20) { + $ERROR('#2: 2E+01 === 20'); +} + +//CHECK#3 +if (3E+01 !== 30) { + $ERROR('#3: 3E+01 === 30'); +} + +//CHECK#4 +if (4E+01 !== 40) { + $ERROR('#4: 4E+01 === 40'); +} + +//CHECK#5 +if (5E+01 !== 50) { + $ERROR('#5: 5E+01 === 50'); +} + +//CHECK#6 +if (6E+01 !== 60) { + $ERROR('#6: 6E+01 === 60'); +} + +//CHECK#7 +if (7E+01 !== 70) { + $ERROR('#7: 7E+01 === 70'); +} + +//CHECK#8 +if (8E+01 !== 80) { + $ERROR('#8: 8E+01 === 80'); +} + +//CHECK#9 +if (9E+01 !== 90) { + $ERROR('#9: 9E+01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js new file mode 100644 index 000000000..9fbd8a679 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e00 !== 0) { + $ERROR('#0: 0e00 === 0'); +} + +//CHECK#1 +if (1e00 !== 1) { + $ERROR('#1: 1e00 === 1'); +} + +//CHECK#2 +if (2e00 !== 2) { + $ERROR('#2: 2e00 === 2'); +} + +//CHECK#3 +if (3e00 !== 3) { + $ERROR('#3: 3e00 === 3'); +} + +//CHECK#4 +if (4e00 !== 4) { + $ERROR('#4: 4e00 === 4'); +} + +//CHECK#5 +if (5e00 !== 5) { + $ERROR('#5: 5e00 === 5'); +} + +//CHECK#6 +if (6e00 !== 6) { + $ERROR('#6: 6e00 === 6'); +} + +//CHECK#7 +if (7e00 !== 7) { + $ERROR('#7: 7e00 === 7'); +} + +//CHECK#8 +if (8e00 !== 8) { + $ERROR('#8: 8e00 === 8'); +} + +//CHECK#9 +if (9e00 !== 9) { + $ERROR('#9: 9e00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js new file mode 100644 index 000000000..2c62351fa --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E00 !== 0) { + $ERROR('#0: 0E00 === 0'); +} + +//CHECK#1 +if (1E00 !== 1) { + $ERROR('#1: 1E00 === 1'); +} + +//CHECK#2 +if (2E00 !== 2) { + $ERROR('#2: 2E00 === 2'); +} + +//CHECK#3 +if (3E00 !== 3) { + $ERROR('#3: 3E00 === 3'); +} + +//CHECK#4 +if (4E00 !== 4) { + $ERROR('#4: 4E00 === 4'); +} + +//CHECK#5 +if (5E00 !== 5) { + $ERROR('#5: 5E00 === 5'); +} + +//CHECK#6 +if (6E00 !== 6) { + $ERROR('#6: 6E00 === 6'); +} + +//CHECK#7 +if (7E00 !== 7) { + $ERROR('#7: 7E00 === 7'); +} + +//CHECK#8 +if (8E00 !== 8) { + $ERROR('#8: 8E00 === 8'); +} + +//CHECK#9 +if (9E00 !== 9) { + $ERROR('#9: 9E00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js new file mode 100644 index 000000000..2e6b786b4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js + * @description HexIntegerLiteral :: 0x Digit + */ + +//CHECK#0 +if (0x0 !== 0) { + $ERROR('#0: 0x0 === 0'); +} + +//CHECK#1 +if (0x1 !== 1) { + $ERROR('#1: 0x1 === 1'); +} + +//CHECK#2 +if (0x2 !== 2) { + $ERROR('#2: 0x2 === 2'); +} + +//CHECK#3 +if (0x3 !== 3) { + $ERROR('#3: 0x3 === 3'); +} + +//CHECK#4 +if (0x4 !== 4) { + $ERROR('#4: 0x4 === 4'); +} + +//CHECK#5 +if (0x5 !== 5) { + $ERROR('#5: 0x5 === 5'); +} + +//CHECK#6 +if (0x6 !== 6) { + $ERROR('#6: 0x6 === 6'); +} + +//CHECK#7 +if (0x7 !== 7) { + $ERROR('#7: 0x7 === 7'); +} + +//CHECK#8 +if (0x8 !== 8) { + $ERROR('#8: 0x8 === 8'); +} + +//CHECK#9 +if (0x9 !== 9) { + $ERROR('#9: 0x9 === 9'); +} + +//CHECK#A +if (0xA !== 10) { + $ERROR('#A: 0xA === 10'); +} + +//CHECK#B +if (0xB !== 11) { + $ERROR('#B: 0xB === 11'); +} + +//CHECK#C +if (0xC !== 12) { + $ERROR('#C: 0xC === 12'); +} + +//CHECK#D +if (0xD !== 13) { + $ERROR('#D: 0xD === 13'); +} + +//CHECK#E +if (0xE !== 14) { + $ERROR('#E: 0xE === 14'); +} + +//CHECK#F +if (0xF !== 15) { + $ERROR('#F: 0xF === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js new file mode 100644 index 000000000..ca55655e2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js + * @description HexIntegerLiteral :: 0X Digit + */ + +//CHECK#0 +if (0X0 !== 0) { + $ERROR('#0: 0X0 === 0'); +} + +//CHECK#1 +if (0X1 !== 1) { + $ERROR('#1: 0X1 === 1'); +} + +//CHECK#2 +if (0X2 !== 2) { + $ERROR('#2: 0X2 === 2'); +} + +//CHECK#3 +if (0X3 !== 3) { + $ERROR('#3: 0X3 === 3'); +} + +//CHECK#4 +if (0X4 !== 4) { + $ERROR('#4: 0X4 === 4'); +} + +//CHECK#5 +if (0X5 !== 5) { + $ERROR('#5: 0X5 === 5'); +} + +//CHECK#6 +if (0X6 !== 6) { + $ERROR('#6: 0X6 === 6'); +} + +//CHECK#7 +if (0X7 !== 7) { + $ERROR('#7: 0X7 === 7'); +} + +//CHECK#8 +if (0X8 !== 8) { + $ERROR('#8: 0X8 === 8'); +} + +//CHECK#9 +if (0X9 !== 9) { + $ERROR('#9: 0X9 === 9'); +} + +//CHECK#A +if (0XA !== 10) { + $ERROR('#A: 0XA === 10'); +} + +//CHECK#B +if (0XB !== 11) { + $ERROR('#B: 0XB === 11'); +} + +//CHECK#C +if (0XC !== 12) { + $ERROR('#C: 0XC === 12'); +} + +//CHECK#D +if (0XD !== 13) { + $ERROR('#D: 0XD === 13'); +} + +//CHECK#E +if (0XE !== 14) { + $ERROR('#E: 0XE === 14'); +} + +//CHECK#F +if (0XF !== 15) { + $ERROR('#F: 0XF === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js new file mode 100644 index 000000000..089a84112 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js + * @description HexIntegerLiteral :: 0x NonZeroDigit Digits + */ + +//CHECK#0 +if (0x0 !== 0) { + $ERROR('#0: 0x0 === 0'); +} + +//CHECK#1 +if (0x1 !== 1) { + $ERROR('#1: 0x1 === 1'); +} + +//CHECK#2 +if (0x10 !== 16) { + $ERROR('#2: 0x10 === 16'); +} + +//CHECK3 +if (0x100 !== 256) { + $ERROR('3: 0x100 === 256'); +} + +//CHECK#4 +if (0x1000 !== 4096) { + $ERROR('#4: 0x1000 === 4096'); +} + +//CHECK#5 +if (0x10000 !== 65536) { + $ERROR('#5: 0x10000 === 65536'); +} + +//CHECK#6 +if (0x100000 !== 1048576) { + $ERROR('#6: 0x100000 === 1048576'); +} + +//CHECK#7 +if (0x1000000 !== 16777216) { + $ERROR('#7: 0x1000000 === 16777216'); +} + +//CHECK#8 +if (0x10000000 !== 268435456) { + $ERROR('#8: 0x10000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js new file mode 100644 index 000000000..5ddc484a8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js + * @description HexIntegerLiteral :: 0X NonZeroDigit Digits + */ + +//CHECK#0 +if (0X0 !== 0) { + $ERROR('#0: 0X0 === 0'); +} + +//CHECK#1 +if (0X1 !== 1) { + $ERROR('#1: 0X1 === 1'); +} + +//CHECK#2 +if (0X10 !== 16) { + $ERROR('#2: 0X10 === 16'); +} + +//CHECK3 +if (0X100 !== 256) { + $ERROR('3: 0X100 === 256'); +} + +//CHECK#4 +if (0X1000 !== 4096) { + $ERROR('#4: 0X1000 === 4096'); +} + +//CHECK#5 +if (0X10000 !== 65536) { + $ERROR('#5: 0X10000 === 65536'); +} + +//CHECK#6 +if (0X100000 !== 1048576) { + $ERROR('#6: 0X100000 === 1048576'); +} + +//CHECK#7 +if (0X1000000 !== 16777216) { + $ERROR('#7: 0X1000000 === 16777216'); +} + +//CHECK#8 +if (0X10000000 !== 268435456) { + $ERROR('#8: 0X10000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js new file mode 100644 index 000000000..da8e61ed4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js + * @description HexIntegerLiteral :: 0x0 Digits + */ + +//CHECK#0 +if (0x00 !== 0) { + $ERROR('#0: 0x00 === 0'); +} + +//CHECK#1 +if (0x01 !== 1) { + $ERROR('#1: 0x01 === 1'); +} + +//CHECK#2 +if (0x010 !== 16) { + $ERROR('#2: 0x010 === 16'); +} + +//CHECK3 +if (0x0100 !== 256) { + $ERROR('3: 0x0100 === 256'); +} + +//CHECK#4 +if (0x01000 !== 4096) { + $ERROR('#4: 0x01000 === 4096'); +} + +//CHECK#5 +if (0x010000 !== 65536) { + $ERROR('#5: 0x010000 === 65536'); +} + +//CHECK#6 +if (0x0100000 !== 1048576) { + $ERROR('#6: 0x0100000 === 1048576'); +} + +//CHECK#7 +if (0x01000000 !== 16777216) { + $ERROR('#7: 0x01000000 === 16777216'); +} + +//CHECK#8 +if (0x010000000 !== 268435456) { + $ERROR('#8: 0x010000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js new file mode 100644 index 000000000..659c7dfbb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js + * @description HexIntegerLiteral :: 0X0 Digits + */ + +//CHECK#0 +if (0X00 !== 0) { + $ERROR('#0: 0X00 === 0'); +} + +//CHECK#1 +if (0X01 !== 1) { + $ERROR('#1: 0X01 === 1'); +} + +//CHECK#2 +if (0X010 !== 16) { + $ERROR('#2: 0X010 === 16'); +} + +//CHECK3 +if (0X0100 !== 256) { + $ERROR('3: 0X0100 === 256'); +} + +//CHECK#4 +if (0X01000 !== 4096) { + $ERROR('#4: 0X01000 === 4096'); +} + +//CHECK#5 +if (0X010000 !== 65536) { + $ERROR('#5: 0X010000 === 65536'); +} + +//CHECK#6 +if (0X0100000 !== 1048576) { + $ERROR('#6: 0X0100000 === 1048576'); +} + +//CHECK#7 +if (0X01000000 !== 16777216) { + $ERROR('#7: 0X01000000 === 16777216'); +} + +//CHECK#8 +if (0X010000000 !== 268435456) { + $ERROR('#8: 0X010000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js new file mode 100644 index 000000000..7bc52989c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js + * @description HexIntegerLiteral :: 0x one of a, b, c, d, e, f + */ + +//CHECK#a +if (0xa !== 10) { + $ERROR('#a: 0xa === 10'); +} + +//CHECK#b +if (0xb !== 11) { + $ERROR('#b: 0xb === 11'); +} + +//CHECK#c +if (0xc !== 12) { + $ERROR('#c: 0xc === 12'); +} + +//CHECK#d +if (0xd !== 13) { + $ERROR('#d: 0xd === 13'); +} + +//CHECK#e +if (0xe !== 14) { + $ERROR('#e: 0xe === 14'); +} + +//CHECK#f +if (0xf !== 15) { + $ERROR('#f: 0xf === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js new file mode 100644 index 000000000..1f95ab586 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js + * @description HexIntegerLiteral :: 0X one of a, b, c, d, e, f + */ + +//CHECK#a +if (0Xa !== 10) { + $ERROR('#a: 0Xa === 10'); +} + +//CHECK#b +if (0Xb !== 11) { + $ERROR('#b: 0Xb === 11'); +} + +//CHECK#c +if (0Xc !== 12) { + $ERROR('#c: 0Xc === 12'); +} + +//CHECK#d +if (0Xd !== 13) { + $ERROR('#d: 0Xd === 13'); +} + +//CHECK#e +if (0Xe !== 14) { + $ERROR('#e: 0Xe === 14'); +} + +//CHECK#f +if (0Xf !== 15) { + $ERROR('#f: 0Xf === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js new file mode 100644 index 000000000..3be2b908f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * HexIntegerLiteral :: 0(x/X) is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js + * @description Checking if execution of "0x" passes + * @negative + */ + +//CHECK#1 +0x + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js new file mode 100644 index 000000000..8b813b81f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * HexIntegerLiteral :: 0(x/X) is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js + * @description Checking if execution of "0X" passes + * @negative + */ + +//CHECK#1 +0X + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js new file mode 100644 index 000000000..accd26589 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * 0xG is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js + * @description Checking if execution of "0xG" fails + * @negative + */ + +//CHECK#1 +0xG + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js new file mode 100644 index 000000000..7a14fef29 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * 0xG is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js + * @description Checking if execution of "0xg" fails + * @negative + */ + +//CHECK#1 +0xg + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/browser.js b/js/src/tests/test262/ch07/7.8/7.8.3/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/shell.js b/js/src/tests/test262/ch07/7.8/7.8.3/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/shell.js |