aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/15.10.2.8_Atom.json
blob: 14bd61a342ceb01fcc66bd15956bbe0f9bde0124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
{
 "testCollection": {
  "name": "15.10.2.8_Atom",
  "numTests": 60,
  "tests": [
   {
    "section": "15.10.2.8",
    "description": "Execute /(?=(a+))/.exec(\"baaabac\") and check results",
    "test": "__executed = /(?=(a+))/.exec(\"baaabac\");\n\n__expected = [\"\", \"aaa\"];\n__expected.index = 1;\n__expected.input = \"baaabac\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?=(a+))/.exec(\"baaabac\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?=(a+))/.exec(\"baaabac\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?=(a+))/.exec(\"baaabac\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?=(a+))/.exec(\"baaabac\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A1_T1"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(?=(a+))a*b\\1/.exec(\"baaabac\") and check results",
    "test": "__executed = /(?=(a+))a*b\\1/.exec(\"baaabac\");\n\n__expected = [\"aba\", \"a\"];\n__expected.index = 3;\n__expected.input = \"baaabac\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?=(a+))a*b\\\\1/.exec(\"baaabac\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?=(a+))a*b\\\\1/.exec(\"baaabac\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?=(a+))a*b\\\\1/.exec(\"baaabac\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?=(a+))a*b\\\\1/.exec(\"baaabac\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A1_T2"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /[Jj]ava([Ss]cript)?(?=\\:)/.exec(\"just Javascript: the way af jedi\") and check results",
    "test": "__executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec(\"just Javascript: the way af jedi\");\n\n__expected = [\"Javascript\", \"script\"];\n__expected.index = 5;\n__expected.input = \"just Javascript: the way af jedi\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"just Javascript: the way af jedi\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"just Javascript: the way af jedi\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"just Javascript: the way af jedi\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"just Javascript: the way af jedi\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A1_T3"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /[Jj]ava([Ss]cript)?(?=\\:)/.exec(\"taste of java: the cookbook \") and check results",
    "test": "__executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec(\"taste of java: the cookbook \");\n\n__expected = [\"java\", undefined];\n__expected.index = 9;\n__expected.input = \"taste of java: the cookbook \";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"taste of java: the cookbook \"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"taste of java: the cookbook \"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"taste of java: the cookbook \"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\\\:)/.exec(\"taste of java: the cookbook \"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A1_T4"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /[Jj]ava([Ss]cript)?(?=\\:)/.test(\"rhino is JavaScript engine\") and check results",
    "test": "__executed = /[Jj]ava([Ss]cript)?(?=\\:)/.test(\"rhino is JavaScript engine\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\\\:)/.test(\"rhino is JavaScript engine\") === false');\n}\n\n",
    "id": "S15.10.2.8_A1_T5"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec(\"baaabaac\") and check results",
    "test": "__executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec(\"baaabaac\");\n\n__expected = [\"baaabaac\", \"ba\", undefined, \"abaac\"];\n__expected.index = 0;\n__expected.input = \"baaabaac\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(.*?)a(?!(a+)b\\\\2c)\\\\2(.*)/.exec(\"baaabaac\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(.*?)a(?!(a+)b\\\\2c)\\\\2(.*)/.exec(\"baaabaac\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(.*?)a(?!(a+)b\\\\2c)\\\\2(.*)/.exec(\"baaabaac\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(.*?)a(?!(a+)b\\\\2c)\\\\2(.*)/.exec(\"baaabaac\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T1"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(?!a|b)|c/.exec(\"bc\") and check results",
    "test": "__executed = /(?!a|b)|c/.exec(\"bc\");\n\n__expected = [\"\"];\n__expected.index = 1;\n__expected.input = \"bc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?!a|b)|c/.exec(\"bc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?!a|b)|c/.exec(\"bc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?!a|b)|c/.exec(\"bc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?!a|b)|c/.exec(\"bc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T10"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(?!a|b)|c/.exec(\"d\") and check results",
    "test": "__executed = /(?!a|b)|c/.exec(\"d\");\n\n__expected = [\"\"];\n__expected.index = 0;\n__expected.input = \"d\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?!a|b)|c/.exec(\"d\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?!a|b)|c/.exec(\"d\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?!a|b)|c/.exec(\"d\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?!a|b)|c/.exec(\"d\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T11"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /Java(?!Script)([A-Z]\\w*)/.exec(\"using of JavaBeans technology\") and check results",
    "test": "__executed = /Java(?!Script)([A-Z]\\w*)/.exec(\"using of JavaBeans technology\");\n\n__expected = [\"JavaBeans\", \"Beans\"];\n__expected.index = 9;\n__expected.input = \"using of JavaBeans technology\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"using of JavaBeans technology\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"using of JavaBeans technology\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"using of JavaBeans technology\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"using of JavaBeans technology\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T2"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /Java(?!Script)([A-Z]\\w*)/.test(\"using of Java language\") and check results",
    "test": "__executed = /Java(?!Script)([A-Z]\\w*)/.test(\"using of Java language\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /Java(?!Script)([A-Z]\\\\w*)/.test(\"using of Java language\") === false');\n}\n\n",
    "id": "S15.10.2.8_A2_T3"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /Java(?!Script)([A-Z]\\w*)/.test(\"i'm a JavaScripter \") and check results",
    "test": "__executed = /Java(?!Script)([A-Z]\\w*)/.test(\"i'm a JavaScripter \");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /Java(?!Script)([A-Z]\\\\w*)/.test(\"i\\'m a JavaScripter \") === false');\n}\n\n",
    "id": "S15.10.2.8_A2_T4"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /Java(?!Script)([A-Z]\\w*)/.exec(\"JavaScr oops ipt \") and check results",
    "test": "__executed = /Java(?!Script)([A-Z]\\w*)/.exec(\"JavaScr oops ipt \");\n\n__expected = [\"JavaScr\", \"Scr\"];\n__expected.index = 0;\n__expected.input = \"JavaScr oops ipt \";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"JavaScr oops ipt \"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"JavaScr oops ipt \"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"JavaScr oops ipt \"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /Java(?!Script)([A-Z]\\\\w*)/.exec(\"JavaScr oops ipt \"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T5"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(\\.(?!com|org)|\\/)/.exec(\"ah.info\") and check results",
    "test": "__executed = /(\\.(?!com|org)|\\/)/.exec(\"ah.info\");\n\n__expected = ['.', '.'];\n__expected.index = 2;\n__expected.input = \"ah.info\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah.info\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah.info\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah.info\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah.info\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T6"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(\\.(?!com|org)|\\/)/.exec(\"ah/info\") and check results",
    "test": "__executed = /(\\.(?!com|org)|\\/)/.exec(\"ah/info\");\n\n__expected = ['/', '/'];\n__expected.index = 2;\n__expected.input = \"ah/info\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah/info\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah/info\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah/info\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(\\\\.(?!com|org)|\\\\/)/.exec(\"ah/info\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T7"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(\\.(?!com|org)|\\/)/.test(\"ah.com\") and check results",
    "test": "__executed = /(\\.(?!com|org)|\\/)/.test(\"ah.com\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /(\\\\.(?!com|org)|\\\\/)/.test(\"ah.com\") === false');\n}\n\n",
    "id": "S15.10.2.8_A2_T8"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(?!a|b)|c/.exec(\"\") and check results",
    "test": "__executed = /(?!a|b)|c/.exec(\"\");\n\n__expected = [\"\"];\n__expected.index = 0;\n__expected.input = \"\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(?!a|b)|c/.exec(\"\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(?!a|b)|c/.exec(\"\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(?!a|b)|c/.exec(\"\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(?!a|b)|c/.exec(\"\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A2_T9"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec(\"Learning javaScript is funny, really\") and check results",
    "test": "__executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec(\"Learning javaScript is funny, really\");\n\n__expected = [\"javaScript is funny\",\"javaScript\",\"Script\",\"funny\"];\n__expected.index = 9;\n__expected.input = \"Learning javaScript is funny, really\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Learning javaScript is funny, really\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Learning javaScript is funny, really\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Learning javaScript is funny, really\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Learning javaScript is funny, really\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T1"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(\\d{3})(\\d{3})\\1\\2/.exec(\"123456123456\") and check results",
    "test": "__executed = /(\\d{3})(\\d{3})\\1\\2/.exec(\"123456123456\");\n\n__expected = [\"123456123456\",\"123\",\"456\"];\n__expected.index = 0;\n__expected.input = \"123456123456\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(\\\\d{3})(\\\\d{3})\\\\1\\\\2/.exec(\"123456123456\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(\\\\d{3})(\\\\d{3})\\\\1\\\\2/.exec(\"123456123456\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(\\\\d{3})(\\\\d{3})\\\\1\\\\2/.exec(\"123456123456\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(\\\\d{3})(\\\\d{3})\\\\1\\\\2/.exec(\"123456123456\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T10"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /a(..(..)..)/.exec(\"abcdefgh\") and check results",
    "test": "__executed = /a(..(..)..)/.exec(\"abcdefgh\");\n\n__expected = [\"abcdefg\",\"bcdefg\",\"de\"];\n__expected.index = 0;\n__expected.input = \"abcdefgh\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /a(..(..)..)/.exec(\"abcdefgh\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /a(..(..)..)/.exec(\"abcdefgh\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /a(..(..)..)/.exec(\"abcdefgh\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /a(..(..)..)/.exec(\"abcdefgh\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T11"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\") and check results",
    "test": "__executed = /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\");\n\n__expected = [\"abcdef\",\"abc\",\"bc\",\"c\",\"def\",\"ef\",\"f\"];\n__expected.index = 1;\n__expected.input = \"xabcdefg\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec(\"xabcdefg\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T12"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(a(b(c)))(d(e(f)))\\2\\5/.exec(\"xabcdefbcefg\") and check results",
    "test": "__executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec(\"xabcdefbcefg\");\n\n__expected = [\"abcdefbcef\",\"abc\",\"bc\",\"c\",\"def\",\"ef\",\"f\"];\n__expected.index = 1;\n__expected.input = \"xabcdefbcefg\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\\\2\\\\5/.exec(\"xabcdefbcefg\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\\\2\\\\5/.exec(\"xabcdefbcefg\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\\\2\\\\5/.exec(\"xabcdefbcefg\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\\\2\\\\5/.exec(\"xabcdefbcefg\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T13"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /a(.?)b\\1c\\1d\\1/.exec(\"abcd\") and check results",
    "test": "__executed = /a(.?)b\\1c\\1d\\1/.exec(\"abcd\");\n\n__expected = [\"abcd\",\"\"];\n__expected.index = 0;\n__expected.input = \"abcd\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /a(.?)b\\\\1c\\\\1d\\\\1/.exec(\"abcd\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /a(.?)b\\\\1c\\\\1d\\\\1/.exec(\"abcd\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /a(.?)b\\\\1c\\\\1d\\\\1/.exec(\"abcd\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /a(.?)b\\\\1c\\\\1d\\\\1/.exec(\"abcd\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T14"
   },
   {
    "section": "15.10.2.8",
    "description": "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909",
    "test": "__strOriginal = \"hello\";\n__openParen = '(';\n__closeParen = ')';\n__pattern = '';\n numParens = 200;\n  \nfor (var i=0; i<numParens; i++)\n    __pattern += __openParen;\n    \n__pattern += __strOriginal;\n\nfor (i=0; i<numParens; i++) \n    __pattern += __closeParen;\n    \n__re = new RegExp(__pattern);\n\n__executed = __re.exec(__strOriginal);\n\n__expected = [];\nfor (var i=0; i<=numParens; i++)\n    __expected.push(__strOriginal);\n__expected.index = 0;\n__expected.input = __strOriginal;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T15"
   },
   {
    "section": "15.10.2.8",
    "description": "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909",
    "test": "__strOriginal = \"hello\";\n__openParen = '(?:';\n__closeParen = ')';\n__pattern = '';\n numParens = 200;\n  \nfor (var i=0; i<numParens; i++)\n    __pattern += __openParen;\n    \n__pattern += __strOriginal;\n\nfor (i=0; i<numParens; i++) \n    __pattern += __closeParen;\n    \n__re = new RegExp(__pattern);\n\n__executed = __re.exec(__strOriginal);\n\n__expected = [__strOriginal];\n__expected.index = 0;\n__expected.input = __strOriginal;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T16"
   },
   {
    "section": "15.10.2.8",
    "description": "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169497",
    "test": "__body=\"\";\n__body += '<body onXXX=\"alert(event.type);\">\\n';\n__body += '<p>Kibology for all<\\/p>\\n';\n__body += '<p>All for Kibology<\\/p>\\n';\n__body += '<\\/body>';\n\n__html=\"\";\n__html += '<html>\\n';\n__html += __body;\n__html += '\\n<\\/html>';\n\n__executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html);\n\n__expected = [__body, '\\n<p>Kibology for all</p>\\n<p>All for Kibology</p>\\n', '<p>All for Kibology</p>\\n'];\n__expected.index = 7;\n__expected.input = __html;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /<body.*>((.*\\\\n?)*?)<\\\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /<body.*>((.*\\\\n?)*?)<\\\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /<body.*>((.*\\\\n?)*?)<\\\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /<body.*>((.*\\\\n?)*?)<\\\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T17"
   },
   {
    "section": "15.10.2.8",
    "description": "see bug  http:bugzilla.mozilla.org/show_bug.cgi?id=169534",
    "test": "__replaced = \"To sign up click |here|https:www.xxxx.org/subscribe.htm|\".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, '<a href=\"$4\">$2</a>');\n\n__expected = 'To sign up click <a href=\"https:www.xxxx.org/subscribe.htm\">here</a>';\n\n//CHECK#1\nif (__replaced !== __expected) {\n\t$ERROR('#1: __replaced = \"To sign up click |here|https:www.xxxx.org/subscribe.htm|\".replace(/(\\\\|)([\\\\w\\\\x81-\\\\xff ]*)(\\\\|)([\\\\/a-z][\\\\w:\\\\/\\\\.]*\\\\.[a-z]{3,4})(\\\\|)/ig, \\'<a href=\"$4\">$2</a>\\'); __replaced === ' + __expected + '. Actual: ' + __replaced);\n}\n\n",
    "id": "S15.10.2.8_A3_T18"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec(\"Course_Creator = Test\") and check results",
    "test": "__executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec(\"Course_Creator = Test\");\n\n__expected = [\"Course_Creator = Test\",\"Course_Creator\",undefined];\n__expected.index = 0;\n__expected.input = \"Course_Creator = Test\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /([\\\\S]+([ \\\\t]+[\\\\S]+)*)[ \\\\t]*=[ \\\\t]*[\\\\S]+/.exec(\"Course_Creator = Test\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /([\\\\S]+([ \\\\t]+[\\\\S]+)*)[ \\\\t]*=[ \\\\t]*[\\\\S]+/.exec(\"Course_Creator = Test\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /([\\\\S]+([ \\\\t]+[\\\\S]+)*)[ \\\\t]*=[ \\\\t]*[\\\\S]+/.exec(\"Course_Creator = Test\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /([\\\\S]+([ \\\\t]+[\\\\S]+)*)[ \\\\t]*=[ \\\\t]*[\\\\S]+/.exec(\"Course_Creator = Test\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T19"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec(\"Developing with Java is fun, try it\") and check results",
    "test": "__executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec(\"Developing with Java is fun, try it\");\n\n__expected = [\"Java is fun\",\"Java\",undefined,\"fun\"];\n__expected.index = 16;\n__expected.input = \"Developing with Java is fun, try it\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Developing with Java is fun, try it\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Developing with Java is fun, try it\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Developing with Java is fun, try it\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.exec(\"Developing with Java is fun, try it\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T2"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /^(A)?(A.*)$/.exec(\"AAA\") and check results",
    "test": "__executed = /^(A)?(A.*)$/.exec(\"AAA\");\n\n__expected = [\"AAA\",\"A\",\"AA\"];\n__expected.index = 0;\n__expected.input = \"AAA\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /^(A)?(A.*)$/.exec(\"AAA\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /^(A)?(A.*)$/.exec(\"AAA\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /^(A)?(A.*)$/.exec(\"AAA\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /^(A)?(A.*)$/.exec(\"AAA\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T20"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /^(A)?(A.*)$/.exec(\"AA\") and check results",
    "test": "__executed = /^(A)?(A.*)$/.exec(\"AA\");\n\n__expected = [\"AA\",\"A\",\"A\"];\n__expected.index = 0;\n__expected.input = \"AA\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /^(A)?(A.*)$/.exec(\"AA\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /^(A)?(A.*)$/.exec(\"AA\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /^(A)?(A.*)$/.exec(\"AA\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /^(A)?(A.*)$/.exec(\"AA\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T21"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /^(A)?(A.*)$/.exec(\"A\") and check results",
    "test": "__executed = /^(A)?(A.*)$/.exec(\"A\");\n\n__expected = [\"A\",undefined,\"A\"];\n__expected.index = 0;\n__expected.input = \"A\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /^(A)?(A.*)$/.exec(\"A\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /^(A)?(A.*)$/.exec(\"A\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /^(A)?(A.*)$/.exec(\"A\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /^(A)?(A.*)$/.exec(\"A\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T22"
   },
   {
    "section": "15.10.2.8",
    "description": ": Execute /(A)?(A.*)/.exec(\"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\") and check results;",
    "test": "__string = \"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\";\n\n__executed = /(A)?(A.*)/.exec(__string);\n\n__expected = [\"AAAaaAAaaaf;lrlrzs\",\"A\",\"AAaaAAaaaf;lrlrzs\"];\n__expected.index = 13;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"zxcasd;fl\\\\\\  ^AAAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T23"
   },
   {
    "section": "15.10.2.8",
    "description": ": Execute /(A)?(A.*)/.exec(\"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\") and check results;",
    "test": "__string = \"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\";\n\n__executed = /(A)?(A.*)/.exec(__string);\n\n__expected = [\"AAaaAAaaaf;lrlrzs\",\"A\",\"AaaAAaaaf;lrlrzs\"];\n__expected.index = 13;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"zxcasd;fl\\\\\\  ^AAaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T24"
   },
   {
    "section": "15.10.2.8",
    "description": ": Execute /(A)?(A.*)/.exec(\"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\") and check results;",
    "test": "__string = \"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\";\n\n__executed = /(A)?(A.*)/.exec(__string);\n\n__expected = [\"AaaAAaaaf;lrlrzs\",undefined,\"AaaAAaaaf;lrlrzs\"];\n__expected.index = 13;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"zxcasd;fl\\\\\\  ^AaaAAaaaf;lrlrzs\"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T25"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(a)?a/.exec(\"a\") and check results",
    "test": "__string = \"a\";\n\n__executed = /(a)?a/.exec(__string);\n\n__expected = [\"a\",undefined];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"a\"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"a\"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"a\"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"a\"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T26"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /a|(b)/.exec(\"a\") and check results",
    "test": "__string = \"a\";\n\n__executed = /a|(b)/.exec(__string);\n\n__expected = [\"a\",undefined];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"a\"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"a\"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"a\"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"a\"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T27"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(a)?(a)/.exec(\"a\") and check results",
    "test": "__string = \"a\";\n\n__executed = /(a)?(a)/.exec(__string);\n\n__expected = ['a', undefined, 'a'];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"a\"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"a\"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"a\"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"a\"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T28"
   },
   {
    "section": "15.10.2.8",
    "description": "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353",
    "test": "__string = \"a\";\n\n__executed = /^([a-z]+)*[a-z]$/.exec(__string);\n\n__expected = ['a', undefined];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"a\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"a\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"a\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"a\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T29"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test(\"Developing with JavaScript is dangerous, do not try it without assistance\") and check results",
    "test": "__executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test(\"Developing with JavaScript is dangerous, do not try it without assistance\");\n\n//CHECK#1\nif (__executed) {\n\t$ERROR('#1: /([Jj]ava([Ss]cript)?)\\\\sis\\\\s(fun\\\\w*)/.test(\"Developing with JavaScript is dangerous, do not try it without assistance\") === false');\n}\n\n",
    "id": "S15.10.2.8_A3_T3"
   },
   {
    "section": "15.10.2.8",
    "description": "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353",
    "test": "__string = \"ab\";\n\n__executed = /^([a-z]+)*[a-z]$/.exec(__string);\n\n__expected = ['ab', \"a\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"ab\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"ab\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"ab\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"ab\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T30"
   },
   {
    "section": "15.10.2.8",
    "description": "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353",
    "test": "__string = \"abc\";\n\n__executed = /^([a-z]+)*[a-z]$/.exec(__string);\n\n__expected = ['abc', \"ab\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"abc\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"abc\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"abc\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"abc\"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T31"
   },
   {
    "section": "15.10.2.8",
    "description": "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353",
    "test": "__string = \"www.netscape.com\";\n\n__executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string);\n\n__expected = ['www.netscape.com', 'netscape.', 'netscap'];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*[a-z]\\\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*[a-z]\\\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*[a-z]\\\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*[a-z]\\\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T32"
   },
   {
    "section": "15.10.2.8",
    "description": "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353",
    "test": "__string = \"www.netscape.com\";\n\n__executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string);\n\n__expected = ['www.netscape.com', 'netscape.', 'netscap', 'e'];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*([a-z])\\\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*([a-z])\\\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*([a-z])\\\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"www.netscape.com\"; __executed = /^(([a-z]+)*([a-z])\\\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T33"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(abc)/.exec(\"abc\") and check results",
    "test": "__executed = /(abc)/.exec(\"abc\");\n\n__expected = [\"abc\",\"abc\"];\n__expected.index = 0;\n__expected.input = \"abc\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(abc)/.exec(\"abc\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(abc)/.exec(\"abc\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(abc)/.exec(\"abc\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(abc)/.exec(\"abc\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T4"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /a(bc)d(ef)g/.exec(\"abcdefg\") and check results",
    "test": "__executed = /a(bc)d(ef)g/.exec(\"abcdefg\");\n\n__expected = [\"abcdefg\",\"bc\",\"ef\"];\n__expected.index = 0;\n__expected.input = \"abcdefg\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /a(bc)d(ef)g/.exec(\"abcdefg\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /a(bc)d(ef)g/.exec(\"abcdefg\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /a(bc)d(ef)g/.exec(\"abcdefg\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /a(bc)d(ef)g/.exec(\"abcdefg\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T5"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(.{3})(.{4})/.exec(\"abcdefgh\") and check results",
    "test": "__executed = /(.{3})(.{4})/.exec(\"abcdefgh\");\n\n__expected = [\"abcdefg\",\"abc\",\"defg\"];\n__expected.index = 0;\n__expected.input = \"abcdefgh\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(.{3})(.{4})/.exec(\"abcdefgh\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(.{3})(.{4})/.exec(\"abcdefgh\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(.{3})(.{4})/.exec(\"abcdefgh\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(.{3})(.{4})/.exec(\"abcdefgh\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T6"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(aa)bcd\\1/.exec(\"aabcdaabcd\") and check results",
    "test": "__executed = /(aa)bcd\\1/.exec(\"aabcdaabcd\");\n\n__expected = [\"aabcdaa\",\"aa\"];\n__expected.index = 0;\n__expected.input = \"aabcdaabcd\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(aa)bcd\\\\1/.exec(\"aabcdaabcd\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(aa)bcd\\\\1/.exec(\"aabcdaabcd\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(aa)bcd\\\\1/.exec(\"aabcdaabcd\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(aa)bcd\\\\1/.exec(\"aabcdaabcd\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T7"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(aa).+\\1/.exec(\"aabcdaabcd\") and check results",
    "test": "__executed = /(aa).+\\1/.exec(\"aabcdaabcd\");\n\n__expected = [\"aabcdaa\",\"aa\"];\n__expected.index = 0;\n__expected.input = \"aabcdaabcd\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(aa).+\\\\1/.exec(\"aabcdaabcd\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(aa).+\\\\1/.exec(\"aabcdaabcd\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(aa).+\\\\1/.exec(\"aabcdaabcd\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(aa).+\\\\1/.exec(\"aabcdaabcd\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T8"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /(.{2}).+\\1/.exec(\"aabcdaabcd\") and check results",
    "test": "__executed = /(.{2}).+\\1/.exec(\"aabcdaabcd\");\n\n__expected = [\"aabcdaa\",\"aa\"];\n__expected.index = 0;\n__expected.input = \"aabcdaabcd\";\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __executed = /(.{2}).+\\\\1/.exec(\"aabcdaabcd\"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __executed = /(.{2}).+\\\\1/.exec(\"aabcdaabcd\"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __executed = /(.{2}).+\\\\1/.exec(\"aabcdaabcd\"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __executed = /(.{2}).+\\\\1/.exec(\"aabcdaabcd\"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A3_T9"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /ab.de/.exec(\"abcde\") and check results",
    "test": "__string = \"abcde\";\n__executed = /ab.de/.exec(__string);\n\n__expected = [\"abcde\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"abcde\"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"abcde\"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"abcde\"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"abcde\"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T1"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"line 1\\nline 2\") and check results",
    "test": "__string = \"line 1\\nline 2\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"line 1\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"line 1\\nline 2\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"line 1\\nline 2\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"line 1\\nline 2\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"line 1\\nline 2\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T2"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.*a.* /.exec(\"this is a test\") and check results",
    "test": "__string = \"this is a test\";\n__executed = /.*a.*/.exec(__string);\n\n__expected = [\"this is a test\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"this is a test\"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"this is a test\"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"this is a test\"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"this is a test\"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T3"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"this is a *&^%$# test\") and check results",
    "test": "__string = \"this is a *&^%$# test\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"this is a *&^%$# test\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"this is a *&^%$# test\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"this is a *&^%$# test\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"this is a *&^%$# test\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"this is a *&^%$# test\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T4"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"....\") and check results",
    "test": "__string = \"....\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"....\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"....\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"....\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"....\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"....\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T5"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"abcdefghijklmnopqrstuvwxyz\") and check results",
    "test": "__string = \"abcdefghijklmnopqrstuvwxyz\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"abcdefghijklmnopqrstuvwxyz\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"abcdefghijklmnopqrstuvwxyz\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"abcdefghijklmnopqrstuvwxyz\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"abcdefghijklmnopqrstuvwxyz\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"abcdefghijklmnopqrstuvwxyz\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T6"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\") and check results",
    "test": "__string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T7"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /.+/.exec(\"`1234567890-=~!@#$%^&*()_+\") and check results",
    "test": "__string = \"`1234567890-=~!@#$%^&*()_+\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"`1234567890-=~!@#$%^&*()_+\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"`1234567890-=~!@#$%^&*()_+\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"`1234567890-=~!@#$%^&*()_+\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"`1234567890-=~!@#$%^&*()_+\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"`1234567890-=~!@#$%^&*()_+\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T8"
   },
   {
    "section": "15.10.2.8",
    "description": ": Execute /.+/.exec(\"|\\\\[{]};:\\\"\\',<>.?/\") and check results;",
    "test": "__string = \"|\\\\[{]};:\\\"\\',<>.?/\";\n__executed = /.+/.exec(__string);\n\n__expected = [\"|\\\\[{]};:\\\"\\',<>.?/\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"|\\\\[{]};:\\\"\\',<>.?/\"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"|\\\\[{]};:\\\"\\',<>.?/\"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"|\\\\[{]};:\\\"\\',<>.?/\"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"|\\\\[{]};:\\\"\\',<>.?/\"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A4_T9"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /[a-z]+/ig.exec(\"ABC def ghi\") and check results",
    "test": "__string = \"ABC def ghi\";\n__executed = /[a-z]+/ig.exec(__string);\n\n__expected = [\"ABC\"];\n__expected.index = 0;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"ABC def ghi\"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"ABC def ghi\"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"ABC def ghi\"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"ABC def ghi\"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A5_T1"
   },
   {
    "section": "15.10.2.8",
    "description": "Execute /[a-z]+/.exec(\"ABC def ghi\") and check results",
    "test": "__string = \"ABC def ghi\";\n__executed = /[a-z]+/.exec(__string);\n\n__expected = [\"def\"];\n__expected.index = 4;\n__expected.input = __string;\n\n//CHECK#1\nif (__executed.length !== __expected.length) {\n\t$ERROR('#1: __string = \"ABC def ghi\"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);\n}\n\n//CHECK#2\nif (__executed.index !== __expected.index) {\n\t$ERROR('#2: __string = \"ABC def ghi\"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);\n}\n\n//CHECK#3\nif (__executed.input !== __expected.input) {\n\t$ERROR('#3: __string = \"ABC def ghi\"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);\n}\n\n//CHECK#4\nfor(var index=0; index<__expected.length; index++) {\n\tif (__executed[index] !== __expected[index]) {\n\t\t$ERROR('#4: __string = \"ABC def ghi\"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);\n\t}\n}\n\n",
    "id": "S15.10.2.8_A5_T2"
   }
  ]
 }
}