diff options
Diffstat (limited to 'test/suite/ch15/15.10/15.10.2/15.10.2.11')
7 files changed, 36 insertions, 55 deletions
diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js index 306eec084..1e6687534 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js - * @description DecimalEscape :: 0. If i is zero, return the EscapeValue consisting of a <NUL> character (Unicodevalue0000) - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: > + DecimalEscape :: 0. If i is zero, return the EscapeValue + consisting of a <NUL> character (Unicodevalue0000) +---*/ //CHECK#1 var arr = /\0/.exec("\u0000"); @@ -19,4 +19,3 @@ var arr = (new RegExp("\\0")).exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js index fb1cb4676..7bedb8ff2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /(A)\1/.exec("AA"); @@ -18,5 +16,4 @@ if ((arr === null) || (arr[0] !== "AA")) { //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { $ERROR('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js index d96e9f82b..502e778f8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /\1(A)/.exec("AA"); @@ -18,5 +16,4 @@ if ((arr === null) || (arr[0] !== "A")) { //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { $ERROR('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js index 93fe35a09..2def73463 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /(A)\1(B)\2/.exec("AABB"); @@ -23,5 +21,4 @@ if ((arr === null) || (arr[1] !== "A")) { //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { $ERROR('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js index 4adb97ead..10cd6f242 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /\1(A)(B)\2/.exec("ABB"); @@ -23,5 +21,4 @@ if ((arr === null) || (arr[1] !== "A")) { //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { $ERROR('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js index d0915d52f..f79912acb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /((((((((((A))))))))))\1\2\3\4\5\6\7\8\9\10/.exec("AAAAAAAAAAA"); @@ -20,5 +18,4 @@ for (i = 1; i <= 10; i++) { if ((arr === null) || (arr[i] !== "A")) { $ERROR('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js index b2dfb4ee3..943fd37bc 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /((((((((((A))))))))))\10\9\8\7\6\5\4\3\2\1/.exec("AAAAAAAAAAA"); @@ -20,5 +18,4 @@ for (i = 1; i <= 10; i++) { if ((arr === null) || (arr[i] !== "A")) { $ERROR('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } -} - +} |