Debian Codegraph @

rhino/testsrc/tests/ecma_3/RegExp/perlstress-002.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 /*
7 *
8 * Date: 2002-07-07
9 * SUMMARY: Testing JS RegExp engine against Perl 5 RegExp engine.
10 * Adjust cnLBOUND, cnUBOUND below to restrict which sections are tested.
11 *
12 * This test was created by running various patterns and strings through the
13 * Perl 5 RegExp engine. We saved the results below to test the JS engine.
14 *
15 * Each of the examples below is a negative test; that is, each produces a
16 * null match in Perl. Thus we set |expectedmatch| = |null| in each section.
17 *
18 * NOTE: ECMA/JS and Perl do differ on certain points. We have either commented
19 * out such sections altogether, or modified them to fit what we expect from JS.
20 *
21 * EXAMPLES:
22 *
23 * - ECMA does support (?: (?= and (?! operators, but doesn't support (?< etc.
24 *
25 * - ECMA doesn't support (?(condition)
26 *
27 */
28 //-----------------------------------------------------------------------------
29 var gTestfile = 'perlstress-002.js';
30 var i = 0;
31 var BUGNUMBER = 85721;
32 var summary = 'Testing regular expression edge cases';
33 var cnSingleSpace = ' ';
34 var status = '';
35 var statusmessages = new Array();
36 var pattern = '';
37 var patterns = new Array();
38 var string = '';
39 var strings = new Array();
40 var actualmatch = '';
41 var actualmatches = new Array();
42 var expectedmatch = '';
43 var expectedmatches = new Array();
44 var cnLBOUND = 0;
45 var cnUBOUND = 1000;
46
47
48 status = inSection(1);
49 pattern = /abc/;
50 string = 'xbc';
51 actualmatch = string.match(pattern);
52 expectedmatch = null;
53 addThis();
54
55 status = inSection(2);
56 pattern = /abc/;
57 string = 'axc';
58 actualmatch = string.match(pattern);
59 expectedmatch = null;
60 addThis();
61
62 status = inSection(3);
63 pattern = /abc/;
64 string = 'abx';
65 actualmatch = string.match(pattern);
66 expectedmatch = null;
67 addThis();
68
69 status = inSection(4);
70 pattern = /ab+bc/;
71 string = 'abc';
72 actualmatch = string.match(pattern);
73 expectedmatch = null;
74 addThis();
75
76 status = inSection(5);
77 pattern = /ab+bc/;
78 string = 'abq';
79 actualmatch = string.match(pattern);
80 expectedmatch = null;
81 addThis();
82
83 status = inSection(6);
84 pattern = /ab{1,}bc/;
85 string = 'abq';
86 actualmatch = string.match(pattern);
87 expectedmatch = null;
88 addThis();
89
90 status = inSection(7);
91 pattern = /ab{4,5}bc/;
92 string = 'abbbbc';
93 actualmatch = string.match(pattern);
94 expectedmatch = null;
95 addThis();
96
97 status = inSection(8);
98 pattern = /ab?bc/;
99 string = 'abbbbc';
100 actualmatch = string.match(pattern);
101 expectedmatch = null;
102 addThis();
103
104 status = inSection(9);
105 pattern = /^abc$/;
106 string = 'abcc';
107 actualmatch = string.match(pattern);
108 expectedmatch = null;
109 addThis();
110
111 status = inSection(10);
112 pattern = /^abc$/;
113 string = 'aabc';
114 actualmatch = string.match(pattern);
115 expectedmatch = null;
116 addThis();
117
118 status = inSection(11);
119 pattern = /abc$/;
120 string = 'aabcd';
121 actualmatch = string.match(pattern);
122 expectedmatch = null;
123 addThis();
124
125 status = inSection(12);
126 pattern = /a.*c/;
127 string = 'axyzd';
128 actualmatch = string.match(pattern);
129 expectedmatch = null;
130 addThis();
131
132 status = inSection(13);
133 pattern = /a[bc]d/;
134 string = 'abc';
135 actualmatch = string.match(pattern);
136 expectedmatch = null;
137 addThis();
138
139 status = inSection(14);
140 pattern = /a[b-d]e/;
141 string = 'abd';
142 actualmatch = string.match(pattern);
143 expectedmatch = null;
144 addThis();
145
146 status = inSection(15);
147 pattern = /a[^bc]d/;
148 string = 'abd';
149 actualmatch = string.match(pattern);
150 expectedmatch = null;
151 addThis();
152
153 status = inSection(16);
154 pattern = /a[^-b]c/;
155 string = 'a-c';
156 actualmatch = string.match(pattern);
157 expectedmatch = null;
158 addThis();
159
160 status = inSection(17);
161 pattern = /a[^]b]c/;
162 string = 'a]c';
163 actualmatch = string.match(pattern);
164 expectedmatch = null;
165 addThis();
166
167 status = inSection(18);
168 pattern = /\by\b/;
169 string = 'xy';
170 actualmatch = string.match(pattern);
171 expectedmatch = null;
172 addThis();
173
174 status = inSection(19);
175 pattern = /\by\b/;
176 string = 'yz';
177 actualmatch = string.match(pattern);
178 expectedmatch = null;
179 addThis();
180
181 status = inSection(20);
182 pattern = /\by\b/;
183 string = 'xyz';
184 actualmatch = string.match(pattern);
185 expectedmatch = null;
186 addThis();
187
188 status = inSection(21);
189 pattern = /\Ba\B/;
190 string = 'a-';
191 actualmatch = string.match(pattern);
192 expectedmatch = null;
193 addThis();
194
195 status = inSection(22);
196 pattern = /\Ba\B/;
197 string = '-a';
198 actualmatch = string.match(pattern);
199 expectedmatch = null;
200 addThis();
201
202 status = inSection(23);
203 pattern = /\Ba\B/;
204 string = '-a-';
205 actualmatch = string.match(pattern);
206 expectedmatch = null;
207 addThis();
208
209 status = inSection(24);
210 pattern = /\w/;
211 string = '-';
212 actualmatch = string.match(pattern);
213 expectedmatch = null;
214 addThis();
215
216 status = inSection(25);
217 pattern = /\W/;
218 string = 'a';
219 actualmatch = string.match(pattern);
220 expectedmatch = null;
221 addThis();
222
223 status = inSection(26);
224 pattern = /a\sb/;
225 string = 'a-b';
226 actualmatch = string.match(pattern);
227 expectedmatch = null;
228 addThis();
229
230 status = inSection(27);
231 pattern = /\d/;
232 string = '-';
233 actualmatch = string.match(pattern);
234 expectedmatch = null;
235 addThis();
236
237 status = inSection(28);
238 pattern = /\D/;
239 string = '1';
240 actualmatch = string.match(pattern);
241 expectedmatch = null;
242 addThis();
243
244 status = inSection(29);
245 pattern = /[\w]/;
246 string = '-';
247 actualmatch = string.match(pattern);
248 expectedmatch = null;
249 addThis();
250
251 status = inSection(30);
252 pattern = /[\W]/;
253 string = 'a';
254 actualmatch = string.match(pattern);
255 expectedmatch = null;
256 addThis();
257
258 status = inSection(31);
259 pattern = /a[\s]b/;
260 string = 'a-b';
261 actualmatch = string.match(pattern);
262 expectedmatch = null;
263 addThis();
264
265 status = inSection(32);
266 pattern = /[\d]/;
267 string = '-';
268 actualmatch = string.match(pattern);
269 expectedmatch = null;
270 addThis();
271
272 status = inSection(33);
273 pattern = /[\D]/;
274 string = '1';
275 actualmatch = string.match(pattern);
276 expectedmatch = null;
277 addThis();
278
279 status = inSection(34);
280 pattern = /$b/;
281 string = 'b';
282 actualmatch = string.match(pattern);
283 expectedmatch = null;
284 addThis();
285
286 status = inSection(35);
287 pattern = /^(ab|cd)e/;
288 string = 'abcde';
289 actualmatch = string.match(pattern);
290 expectedmatch = null;
291 addThis();
292
293 status = inSection(36);
294 pattern = /a[bcd]+dcdcde/;
295 string = 'adcdcde';
296 actualmatch = string.match(pattern);
297 expectedmatch = null;
298 addThis();
299
300 status = inSection(37);
301 pattern = /(bc+d$|ef*g.|h?i(j|k))/;
302 string = 'effg';
303 actualmatch = string.match(pattern);
304 expectedmatch = null;
305 addThis();
306
307 status = inSection(38);
308 pattern = /(bc+d$|ef*g.|h?i(j|k))/;
309 string = 'bcdd';
310 actualmatch = string.match(pattern);
311 expectedmatch = null;
312 addThis();
313
314 status = inSection(39);
315 pattern = /[k]/;
316 string = 'ab';
317 actualmatch = string.match(pattern);
318 expectedmatch = null;
319 addThis();
320
321 // MODIFIED - ECMA has different rules for paren contents.
322 status = inSection(40);
323 pattern = /(a)|\1/;
324 string = 'x';
325 actualmatch = string.match(pattern);
326 //expectedmatch = null;
327 expectedmatch = Array("", undefined);
328 addThis();
329
330 // MODIFIED - ECMA has different rules for paren contents.
331 status = inSection(41);
332 pattern = /((\3|b)\2(a)x)+/;
333 string = 'aaxabxbaxbbx';
334 actualmatch = string.match(pattern);
335 //expectedmatch = null;
336 expectedmatch = Array("ax", "ax", "", "a");
337 addThis();
338
339 status = inSection(42);
340 pattern = /abc/i;
341 string = 'XBC';
342 actualmatch = string.match(pattern);
343 expectedmatch = null;
344 addThis();
345
346 status = inSection(43);
347 pattern = /abc/i;
348 string = 'AXC';
349 actualmatch = string.match(pattern);
350 expectedmatch = null;
351 addThis();
352
353 status = inSection(44);
354 pattern = /abc/i;
355 string = 'ABX';
356 actualmatch = string.match(pattern);
357 expectedmatch = null;
358 addThis();
359
360 status = inSection(45);
361 pattern = /ab+bc/i;
362 string = 'ABC';
363 actualmatch = string.match(pattern);
364 expectedmatch = null;
365 addThis();
366
367 status = inSection(46);
368 pattern = /ab+bc/i;
369 string = 'ABQ';
370 actualmatch = string.match(pattern);
371 expectedmatch = null;
372 addThis();
373
374 status = inSection(47);
375 pattern = /ab{1,}bc/i;
376 string = 'ABQ';
377 actualmatch = string.match(pattern);
378 expectedmatch = null;
379 addThis();
380
381 status = inSection(48);
382 pattern = /ab{4,5}?bc/i;
383 string = 'ABBBBC';
384 actualmatch = string.match(pattern);
385 expectedmatch = null;
386 addThis();
387
388 status = inSection(49);
389 pattern = /ab??bc/i;
390 string = 'ABBBBC';
391 actualmatch = string.match(pattern);
392 expectedmatch = null;
393 addThis();
394
395 status = inSection(50);
396 pattern = /^abc$/i;
397 string = 'ABCC';
398 actualmatch = string.match(pattern);
399 expectedmatch = null;
400 addThis();
401
402 status = inSection(51);
403 pattern = /^abc$/i;
404 string = 'AABC';
405 actualmatch = string.match(pattern);
406 expectedmatch = null;
407 addThis();
408
409 status = inSection(52);
410 pattern = /a.*c/i;
411 string = 'AXYZD';
412 actualmatch = string.match(pattern);
413 expectedmatch = null;
414 addThis();
415
416 status = inSection(53);
417 pattern = /a[bc]d/i;
418 string = 'ABC';
419 actualmatch = string.match(pattern);
420 expectedmatch = null;
421 addThis();
422
423 status = inSection(54);
424 pattern = /a[b-d]e/i;
425 string = 'ABD';
426 actualmatch = string.match(pattern);
427 expectedmatch = null;
428 addThis();
429
430 status = inSection(55);
431 pattern = /a[^bc]d/i;
432 string = 'ABD';
433 actualmatch = string.match(pattern);
434 expectedmatch = null;
435 addThis();
436
437 status = inSection(56);
438 pattern = /a[^-b]c/i;
439 string = 'A-C';
440 actualmatch = string.match(pattern);
441 expectedmatch = null;
442 addThis();
443
444 status = inSection(57);
445 pattern = /a[^]b]c/i;
446 string = 'A]C';
447 actualmatch = string.match(pattern);
448 expectedmatch = null;
449 addThis();
450
451 status = inSection(58);
452 pattern = /$b/i;
453 string = 'B';
454 actualmatch = string.match(pattern);
455 expectedmatch = null;
456 addThis();
457
458 status = inSection(59);
459 pattern = /^(ab|cd)e/i;
460 string = 'ABCDE';
461 actualmatch = string.match(pattern);
462 expectedmatch = null;
463 addThis();
464
465 status = inSection(60);
466 pattern = /a[bcd]+dcdcde/i;
467 string = 'ADCDCDE';
468 actualmatch = string.match(pattern);
469 expectedmatch = null;
470 addThis();
471
472 status = inSection(61);
473 pattern = /(bc+d$|ef*g.|h?i(j|k))/i;
474 string = 'EFFG';
475 actualmatch = string.match(pattern);
476 expectedmatch = null;
477 addThis();
478
479 status = inSection(62);
480 pattern = /(bc+d$|ef*g.|h?i(j|k))/i;
481 string = 'BCDD';
482 actualmatch = string.match(pattern);
483 expectedmatch = null;
484 addThis();
485
486 status = inSection(63);
487 pattern = /[k]/i;
488 string = 'AB';
489 actualmatch = string.match(pattern);
490 expectedmatch = null;
491 addThis();
492
493 status = inSection(64);
494 pattern = /^(a\1?){4}$/;
495 string = 'aaaaaaaaa';
496 actualmatch = string.match(pattern);
497 expectedmatch = null;
498 addThis();
499
500 status = inSection(65);
501 pattern = /^(a\1?){4}$/;
502 string = 'aaaaaaaaaaa';
503 actualmatch = string.match(pattern);
504 expectedmatch = null;
505 addThis();
506
507 /* ECMA doesn't support (?(
508 status = inSection(66);
509 pattern = /^(a(?(1)\1)){4}$/;
510 string = 'aaaaaaaaa';
511 actualmatch = string.match(pattern);
512 expectedmatch = null;
513 addThis();
514
515 status = inSection(67);
516 pattern = /^(a(?(1)\1)){4}$/;
517 string = 'aaaaaaaaaaa';
518 actualmatch = string.match(pattern);
519 expectedmatch = null;
520 addThis();
521 */
522
523 /* ECMA doesn't support (?<
524 status = inSection(68);
525 pattern = /(?<=a)b/;
526 string = 'cb';
527 actualmatch = string.match(pattern);
528 expectedmatch = null;
529 addThis();
530
531 status = inSection(69);
532 pattern = /(?<=a)b/;
533 string = 'b';
534 actualmatch = string.match(pattern);
535 expectedmatch = null;
536 addThis();
537
538 status = inSection(70);
539 pattern = /(?<!c)b/;
540 string = 'cb';
541 actualmatch = string.match(pattern);
542 expectedmatch = null;
543 addThis();
544 */
545
546 /* ECMA doesn't support (?(condition)
547 status = inSection(71);
548 pattern = /(?:(?i)a)b/;
549 string = 'aB';
550 actualmatch = string.match(pattern);
551 expectedmatch = null;
552 addThis();
553
554 status = inSection(72);
555 pattern = /((?i)a)b/;
556 string = 'aB';
557 actualmatch = string.match(pattern);
558 expectedmatch = null;
559 addThis();
560
561 status = inSection(73);
562 pattern = /(?i:a)b/;
563 string = 'aB';
564 actualmatch = string.match(pattern);
565 expectedmatch = null;
566 addThis();
567
568 status = inSection(74);
569 pattern = /((?i:a))b/;
570 string = 'aB';
571 actualmatch = string.match(pattern);
572 expectedmatch = null;
573 addThis();
574
575 status = inSection(75);
576 pattern = /(?:(?-i)a)b/i;
577 string = 'Ab';
578 actualmatch = string.match(pattern);
579 expectedmatch = null;
580 addThis();
581
582 status = inSection(76);
583 pattern = /((?-i)a)b/i;
584 string = 'Ab';
585 actualmatch = string.match(pattern);
586 expectedmatch = null;
587 addThis();
588
589 status = inSection(77);
590 pattern = /(?:(?-i)a)b/i;
591 string = 'AB';
592 actualmatch = string.match(pattern);
593 expectedmatch = null;
594 addThis();
595
596 status = inSection(78);
597 pattern = /((?-i)a)b/i;
598 string = 'AB';
599 actualmatch = string.match(pattern);
600 expectedmatch = null;
601 addThis();
602
603 status = inSection(79);
604 pattern = /(?-i:a)b/i;
605 string = 'Ab';
606 actualmatch = string.match(pattern);
607 expectedmatch = null;
608 addThis();
609
610 status = inSection(80);
611 pattern = /((?-i:a))b/i;
612 string = 'Ab';
613 actualmatch = string.match(pattern);
614 expectedmatch = null;
615 addThis();
616
617 status = inSection(81);
618 pattern = /(?-i:a)b/i;
619 string = 'AB';
620 actualmatch = string.match(pattern);
621 expectedmatch = null;
622 addThis();
623
624 status = inSection(82);
625 pattern = /((?-i:a))b/i;
626 string = 'AB';
627 actualmatch = string.match(pattern);
628 expectedmatch = null;
629 addThis();
630
631 status = inSection(83);
632 pattern = /((?-i:a.))b/i;
633 string = 'a\nB';
634 actualmatch = string.match(pattern);
635 expectedmatch = null;
636 addThis();
637
638 status = inSection(84);
639 pattern = /((?s-i:a.))b/i;
640 string = 'B\nB';
641 actualmatch = string.match(pattern);
642 expectedmatch = null;
643 addThis();
644 */
645
646 /* ECMA doesn't support (?<
647 status = inSection(85);
648 pattern = /(?<![cd])b/;
649 string = 'dbcb';
650 actualmatch = string.match(pattern);
651 expectedmatch = null;
652 addThis();
653
654 status = inSection(86);
655 pattern = /(?<!(c|d))b/;
656 string = 'dbcb';
657 actualmatch = string.match(pattern);
658 expectedmatch = null;
659 addThis();
660 */
661
662 status = inSection(87);
663 pattern = /^(?:a?b?)*$/;
664 string = 'a--';
665 actualmatch = string.match(pattern);
666 expectedmatch = null;
667 addThis();
668
669 status = inSection(88);
670 pattern = /^b/;
671 string = 'a\nb\nc\n';
672 actualmatch = string.match(pattern);
673 expectedmatch = null;
674 addThis();
675
676 status = inSection(89);
677 pattern = /()^b/;
678 string = 'a\nb\nc\n';
679 actualmatch = string.match(pattern);
680 expectedmatch = null;
681 addThis();
682
683 /* ECMA doesn't support (?(
684 status = inSection(90);
685 pattern = /(?(1)a|b)/;
686 string = 'a';
687 actualmatch = string.match(pattern);
688 expectedmatch = null;
689 addThis();
690
691 status = inSection(91);
692 pattern = /(x)?(?(1)a|b)/;
693 string = 'a';
694 actualmatch = string.match(pattern);
695 expectedmatch = null;
696 addThis();
697
698 status = inSection(92);
699 pattern = /()(?(1)b|a)/;
700 string = 'a';
701 actualmatch = string.match(pattern);
702 expectedmatch = null;
703 addThis();
704
705 status = inSection(93);
706 pattern = /^(\()?blah(?(1)(\)))$/;
707 string = 'blah)';
708 actualmatch = string.match(pattern);
709 expectedmatch = null;
710 addThis();
711
712 status = inSection(94);
713 pattern = /^(\()?blah(?(1)(\)))$/;
714 string = '(blah';
715 actualmatch = string.match(pattern);
716 expectedmatch = null;
717 addThis();
718
719 status = inSection(95);
720 pattern = /^(\(+)?blah(?(1)(\)))$/;
721 string = 'blah)';
722 actualmatch = string.match(pattern);
723 expectedmatch = null;
724 addThis();
725
726 status = inSection(96);
727 pattern = /^(\(+)?blah(?(1)(\)))$/;
728 string = '(blah';
729 actualmatch = string.match(pattern);
730 expectedmatch = null;
731 addThis();
732
733 status = inSection(97);
734 pattern = /(?(?{0})a|b)/;
735 string = 'a';
736 actualmatch = string.match(pattern);
737 expectedmatch = null;
738 addThis();
739
740 status = inSection(98);
741 pattern = /(?(?{1})b|a)/;
742 string = 'a';
743 actualmatch = string.match(pattern);
744 expectedmatch = null;
745 addThis();
746
747 status = inSection(99);
748 pattern = /(?(?!a)a|b)/;
749 string = 'a';
750 actualmatch = string.match(pattern);
751 expectedmatch = null;
752 addThis();
753
754 status = inSection(100);
755 pattern = /(?(?=a)b|a)/;
756 string = 'a';
757 actualmatch = string.match(pattern);
758 expectedmatch = null;
759 addThis();
760 */
761
762 status = inSection(101);
763 pattern = /^(?=(a+?))\1ab/;
764 string = 'aaab';
765 actualmatch = string.match(pattern);
766 expectedmatch = null;
767 addThis();
768
769 status = inSection(102);
770 pattern = /^(?=(a+?))\1ab/;
771 string = 'aaab';
772 actualmatch = string.match(pattern);
773 expectedmatch = null;
774 addThis();
775
776 status = inSection(103);
777 pattern = /([\w:]+::)?(\w+)$/;
778 string = 'abcd:';
779 actualmatch = string.match(pattern);
780 expectedmatch = null;
781 addThis();
782
783 status = inSection(104);
784 pattern = /([\w:]+::)?(\w+)$/;
785 string = 'abcd:';
786 actualmatch = string.match(pattern);
787 expectedmatch = null;
788 addThis();
789
790 status = inSection(105);
791 pattern = /(>a+)ab/;
792 string = 'aaab';
793 actualmatch = string.match(pattern);
794 expectedmatch = null;
795 addThis();
796
797 status = inSection(106);
798 pattern = /a\Z/;
799 string = 'a\nb\n';
800 actualmatch = string.match(pattern);
801 expectedmatch = null;
802 addThis();
803
804 status = inSection(107);
805 pattern = /a\z/;
806 string = 'a\nb\n';
807 actualmatch = string.match(pattern);
808 expectedmatch = null;
809 addThis();
810
811 status = inSection(108);
812 pattern = /a$/;
813 string = 'a\nb\n';
814 actualmatch = string.match(pattern);
815 expectedmatch = null;
816 addThis();
817
818 status = inSection(109);
819 pattern = /a\z/;
820 string = 'b\na\n';
821 actualmatch = string.match(pattern);
822 expectedmatch = null;
823 addThis();
824
825 status = inSection(110);
826 pattern = /a\z/m;
827 string = 'a\nb\n';
828 actualmatch = string.match(pattern);
829 expectedmatch = null;
830 addThis();
831
832 status = inSection(111);
833 pattern = /a\z/m;
834 string = 'b\na\n';
835 actualmatch = string.match(pattern);
836 expectedmatch = null;
837 addThis();
838
839 status = inSection(112);
840 pattern = /aa\Z/;
841 string = 'aa\nb\n';
842 actualmatch = string.match(pattern);
843 expectedmatch = null;
844 addThis();
845
846 status = inSection(113);
847 pattern = /aa\z/;
848 string = 'aa\nb\n';
849 actualmatch = string.match(pattern);
850 expectedmatch = null;
851 addThis();
852
853 status = inSection(114);
854 pattern = /aa$/;
855 string = 'aa\nb\n';
856 actualmatch = string.match(pattern);
857 expectedmatch = null;
858 addThis();
859
860 status = inSection(115);
861 pattern = /aa\z/;
862 string = 'b\naa\n';
863 actualmatch = string.match(pattern);
864 expectedmatch = null;
865 addThis();
866
867 status = inSection(116);
868 pattern = /aa\z/m;
869 string = 'aa\nb\n';
870 actualmatch = string.match(pattern);
871 expectedmatch = null;
872 addThis();
873
874 status = inSection(117);
875 pattern = /aa\z/m;
876 string = 'b\naa\n';
877 actualmatch = string.match(pattern);
878 expectedmatch = null;
879 addThis();
880
881 status = inSection(118);
882 pattern = /aa\Z/;
883 string = 'ac\nb\n';
884 actualmatch = string.match(pattern);
885 expectedmatch = null;
886 addThis();
887
888 status = inSection(119);
889 pattern = /aa\z/;
890 string = 'ac\nb\n';
891 actualmatch = string.match(pattern);
892 expectedmatch = null;
893 addThis();
894
895 status = inSection(120);
896 pattern = /aa$/;
897 string = 'ac\nb\n';
898 actualmatch = string.match(pattern);
899 expectedmatch = null;
900 addThis();
901
902 status = inSection(121);
903 pattern = /aa\Z/;
904 string = 'b\nac\n';
905 actualmatch = string.match(pattern);
906 expectedmatch = null;
907 addThis();
908
909 status = inSection(122);
910 pattern = /aa\z/;
911 string = 'b\nac\n';
912 actualmatch = string.match(pattern);
913 expectedmatch = null;
914 addThis();
915
916 status = inSection(123);
917 pattern = /aa$/;
918 string = 'b\nac\n';
919 actualmatch = string.match(pattern);
920 expectedmatch = null;
921 addThis();
922
923 status = inSection(124);
924 pattern = /aa\Z/;
925 string = 'b\nac';
926 actualmatch = string.match(pattern);
927 expectedmatch = null;
928 addThis();
929
930 status = inSection(125);
931 pattern = /aa\z/;
932 string = 'b\nac';
933 actualmatch = string.match(pattern);
934 expectedmatch = null;
935 addThis();
936
937 status = inSection(126);
938 pattern = /aa$/;
939 string = 'b\nac';
940 actualmatch = string.match(pattern);
941 expectedmatch = null;
942 addThis();
943
944 status = inSection(127);
945 pattern = /aa\Z/m;
946 string = 'ac\nb\n';
947 actualmatch = string.match(pattern);
948 expectedmatch = null;
949 addThis();
950
951 status = inSection(128);
952 pattern = /aa\z/m;
953 string = 'ac\nb\n';
954 actualmatch = string.match(pattern);
955 expectedmatch = null;
956 addThis();
957
958 status = inSection(129);
959 pattern = /aa$/m;
960 string = 'ac\nb\n';
961 actualmatch = string.match(pattern);
962 expectedmatch = null;
963 addThis();
964
965 status = inSection(130);
966 pattern = /aa\Z/m;
967 string = 'b\nac\n';
968 actualmatch = string.match(pattern);
969 expectedmatch = null;
970 addThis();
971
972 status = inSection(131);
973 pattern = /aa\z/m;
974 string = 'b\nac\n';
975 actualmatch = string.match(pattern);
976 expectedmatch = null;
977 addThis();
978
979 status = inSection(132);
980 pattern = /aa$/m;
981 string = 'b\nac\n';
982 actualmatch = string.match(pattern);
983 expectedmatch = null;
984 addThis();
985
986 status = inSection(133);
987 pattern = /aa\Z/m;
988 string = 'b\nac';
989 actualmatch = string.match(pattern);
990 expectedmatch = null;
991 addThis();
992
993 status = inSection(134);
994 pattern = /aa\z/m;
995 string = 'b\nac';
996 actualmatch = string.match(pattern);
997 expectedmatch = null;
998 addThis();
999
1000 status = inSection(135);
1001 pattern = /aa$/m;
1002 string = 'b\nac';
1003 actualmatch = string.match(pattern);
1004 expectedmatch = null;
1005 addThis();
1006
1007 status = inSection(136);
1008 pattern = /aa\Z/;
1009 string = 'ca\nb\n';
1010 actualmatch = string.match(pattern);
1011 expectedmatch = null;
1012 addThis();
1013
1014 status = inSection(137);
1015 pattern = /aa\z/;
1016 string = 'ca\nb\n';
1017 actualmatch = string.match(pattern);
1018 expectedmatch = null;
1019 addThis();
1020
1021 status = inSection(138);
1022 pattern = /aa$/;
1023 string = 'ca\nb\n';
1024 actualmatch = string.match(pattern);
1025 expectedmatch = null;
1026 addThis();
1027
1028 status = inSection(139);
1029 pattern = /aa\Z/;
1030 string = 'b\nca\n';
1031 actualmatch = string.match(pattern);
1032 expectedmatch = null;
1033 addThis();
1034
1035 status = inSection(140);
1036 pattern = /aa\z/;
1037 string = 'b\nca\n';
1038 actualmatch = string.match(pattern);
1039 expectedmatch = null;
1040 addThis();
1041
1042 status = inSection(141);
1043 pattern = /aa$/;
1044 string = 'b\nca\n';
1045 actualmatch = string.match(pattern);
1046 expectedmatch = null;
1047 addThis();
1048
1049 status = inSection(142);
1050 pattern = /aa\Z/;
1051 string = 'b\nca';
1052 actualmatch = string.match(pattern);
1053 expectedmatch = null;
1054 addThis();
1055
1056 status = inSection(143);
1057 pattern = /aa\z/;
1058 string = 'b\nca';
1059 actualmatch = string.match(pattern);
1060 expectedmatch = null;
1061 addThis();
1062
1063 status = inSection(144);
1064 pattern = /aa$/;
1065 string = 'b\nca';
1066 actualmatch = string.match(pattern);
1067 expectedmatch = null;
1068 addThis();
1069
1070 status = inSection(145);
1071 pattern = /aa\Z/m;
1072 string = 'ca\nb\n';
1073 actualmatch = string.match(pattern);
1074 expectedmatch = null;
1075 addThis();
1076
1077 status = inSection(146);
1078 pattern = /aa\z/m;
1079 string = 'ca\nb\n';
1080 actualmatch = string.match(pattern);
1081 expectedmatch = null;
1082 addThis();
1083
1084 status = inSection(147);
1085 pattern = /aa$/m;
1086 string = 'ca\nb\n';
1087 actualmatch = string.match(pattern);
1088 expectedmatch = null;
1089 addThis();
1090
1091 status = inSection(148);
1092 pattern = /aa\Z/m;
1093 string = 'b\nca\n';
1094 actualmatch = string.match(pattern);
1095 expectedmatch = null;
1096 addThis();
1097
1098 status = inSection(149);
1099 pattern = /aa\z/m;
1100 string = 'b\nca\n';
1101 actualmatch = string.match(pattern);
1102 expectedmatch = null;
1103 addThis();
1104
1105 status = inSection(150);
1106 pattern = /aa$/m;
1107 string = 'b\nca\n';
1108 actualmatch = string.match(pattern);
1109 expectedmatch = null;
1110 addThis();
1111
1112 status = inSection(151);
1113 pattern = /aa\Z/m;
1114 string = 'b\nca';
1115 actualmatch = string.match(pattern);
1116 expectedmatch = null;
1117 addThis();
1118
1119 status = inSection(152);
1120 pattern = /aa\z/m;
1121 string = 'b\nca';
1122 actualmatch = string.match(pattern);
1123 expectedmatch = null;
1124 addThis();
1125
1126 status = inSection(153);
1127 pattern = /aa$/m;
1128 string = 'b\nca';
1129 actualmatch = string.match(pattern);
1130 expectedmatch = null;
1131 addThis();
1132
1133 status = inSection(154);
1134 pattern = /ab\Z/;
1135 string = 'ab\nb\n';
1136 actualmatch = string.match(pattern);
1137 expectedmatch = null;
1138 addThis();
1139
1140 status = inSection(155);
1141 pattern = /ab\z/;
1142 string = 'ab\nb\n';
1143 actualmatch = string.match(pattern);
1144 expectedmatch = null;
1145 addThis();
1146
1147 status = inSection(156);
1148 pattern = /ab$/;
1149 string = 'ab\nb\n';
1150 actualmatch = string.match(pattern);
1151 expectedmatch = null;
1152 addThis();
1153
1154 status = inSection(157);
1155 pattern = /ab\z/;
1156 string = 'b\nab\n';
1157 actualmatch = string.match(pattern);
1158 expectedmatch = null;
1159 addThis();
1160
1161 status = inSection(158);
1162 pattern = /ab\z/m;
1163 string = 'ab\nb\n';
1164 actualmatch = string.match(pattern);
1165 expectedmatch = null;
1166 addThis();
1167
1168 status = inSection(159);
1169 pattern = /ab\z/m;
1170 string = 'b\nab\n';
1171 actualmatch = string.match(pattern);
1172 expectedmatch = null;
1173 addThis();
1174
1175 status = inSection(160);
1176 pattern = /ab\Z/;
1177 string = 'ac\nb\n';
1178 actualmatch = string.match(pattern);
1179 expectedmatch = null;
1180 addThis();
1181
1182 status = inSection(161);
1183 pattern = /ab\z/;
1184 string = 'ac\nb\n';
1185 actualmatch = string.match(pattern);
1186 expectedmatch = null;
1187 addThis();
1188
1189 status = inSection(162);
1190 pattern = /ab$/;
1191 string = 'ac\nb\n';
1192 actualmatch = string.match(pattern);
1193 expectedmatch = null;
1194 addThis();
1195
1196 status = inSection(163);
1197 pattern = /ab\Z/;
1198 string = 'b\nac\n';
1199 actualmatch = string.match(pattern);
1200 expectedmatch = null;
1201 addThis();
1202
1203 status = inSection(164);
1204 pattern = /ab\z/;
1205 string = 'b\nac\n';
1206 actualmatch = string.match(pattern);
1207 expectedmatch = null;
1208 addThis();
1209
1210 status = inSection(165);
1211 pattern = /ab$/;
1212 string = 'b\nac\n';
1213 actualmatch = string.match(pattern);
1214 expectedmatch = null;
1215 addThis();
1216
1217 status = inSection(166);
1218 pattern = /ab\Z/;
1219 string = 'b\nac';
1220 actualmatch = string.match(pattern);
1221 expectedmatch = null;
1222 addThis();
1223
1224 status = inSection(167);
1225 pattern = /ab\z/;
1226 string = 'b\nac';
1227 actualmatch = string.match(pattern);
1228 expectedmatch = null;
1229 addThis();
1230
1231 status = inSection(168);
1232 pattern = /ab$/;
1233 string = 'b\nac';
1234 actualmatch = string.match(pattern);
1235 expectedmatch = null;
1236 addThis();
1237
1238 status = inSection(169);
1239 pattern = /ab\Z/m;
1240 string = 'ac\nb\n';
1241 actualmatch = string.match(pattern);
1242 expectedmatch = null;
1243 addThis();
1244
1245 status = inSection(170);
1246 pattern = /ab\z/m;
1247 string = 'ac\nb\n';
1248 actualmatch = string.match(pattern);
1249 expectedmatch = null;
1250 addThis();
1251
1252 status = inSection(171);
1253 pattern = /ab$/m;
1254 string = 'ac\nb\n';
1255 actualmatch = string.match(pattern);
1256 expectedmatch = null;
1257 addThis();
1258
1259 status = inSection(172);
1260 pattern = /ab\Z/m;
1261 string = 'b\nac\n';
1262 actualmatch = string.match(pattern);
1263 expectedmatch = null;
1264 addThis();
1265
1266 status = inSection(173);
1267 pattern = /ab\z/m;
1268 string = 'b\nac\n';
1269 actualmatch = string.match(pattern);
1270 expectedmatch = null;
1271 addThis();
1272
1273 status = inSection(174);
1274 pattern = /ab$/m;
1275 string = 'b\nac\n';
1276 actualmatch = string.match(pattern);
1277 expectedmatch = null;
1278 addThis();
1279
1280 status = inSection(175);
1281 pattern = /ab\Z/m;
1282 string = 'b\nac';
1283 actualmatch = string.match(pattern);
1284 expectedmatch = null;
1285 addThis();
1286
1287 status = inSection(176);
1288 pattern = /ab\z/m;
1289 string = 'b\nac';
1290 actualmatch = string.match(pattern);
1291 expectedmatch = null;
1292 addThis();
1293
1294 status = inSection(177);
1295 pattern = /ab$/m;
1296 string = 'b\nac';
1297 actualmatch = string.match(pattern);
1298 expectedmatch = null;
1299 addThis();
1300
1301 status = inSection(178);
1302 pattern = /ab\Z/;
1303 string = 'ca\nb\n';
1304 actualmatch = string.match(pattern);
1305 expectedmatch = null;
1306 addThis();
1307
1308 status = inSection(179);
1309 pattern = /ab\z/;
1310 string = 'ca\nb\n';
1311 actualmatch = string.match(pattern);
1312 expectedmatch = null;
1313 addThis();
1314
1315 status = inSection(180);
1316 pattern = /ab$/;
1317 string = 'ca\nb\n';
1318 actualmatch = string.match(pattern);
1319 expectedmatch = null;
1320 addThis();
1321
1322 status = inSection(181);
1323 pattern = /ab\Z/;
1324 string = 'b\nca\n';
1325 actualmatch = string.match(pattern);
1326 expectedmatch = null;
1327 addThis();
1328
1329 status = inSection(182);
1330 pattern = /ab\z/;
1331 string = 'b\nca\n';
1332 actualmatch = string.match(pattern);
1333 expectedmatch = null;
1334 addThis();
1335
1336 status = inSection(183);
1337 pattern = /ab$/;
1338 string = 'b\nca\n';
1339 actualmatch = string.match(pattern);
1340 expectedmatch = null;
1341 addThis();
1342
1343 status = inSection(184);
1344 pattern = /ab\Z/;
1345 string = 'b\nca';
1346 actualmatch = string.match(pattern);
1347 expectedmatch = null;
1348 addThis();
1349
1350 status = inSection(185);
1351 pattern = /ab\z/;
1352 string = 'b\nca';
1353 actualmatch = string.match(pattern);
1354 expectedmatch = null;
1355 addThis();
1356
1357 status = inSection(186);
1358 pattern = /ab$/;
1359 string = 'b\nca';
1360 actualmatch = string.match(pattern);
1361 expectedmatch = null;
1362 addThis();
1363
1364 status = inSection(187);
1365 pattern = /ab\Z/m;
1366 string = 'ca\nb\n';
1367 actualmatch = string.match(pattern);
1368 expectedmatch = null;
1369 addThis();
1370
1371 status = inSection(188);
1372 pattern = /ab\z/m;
1373 string = 'ca\nb\n';
1374 actualmatch = string.match(pattern);
1375 expectedmatch = null;
1376 addThis();
1377
1378 status = inSection(189);
1379 pattern = /ab$/m;
1380 string = 'ca\nb\n';
1381 actualmatch = string.match(pattern);
1382 expectedmatch = null;
1383 addThis();
1384
1385 status = inSection(190);
1386 pattern = /ab\Z/m;
1387 string = 'b\nca\n';
1388 actualmatch = string.match(pattern);
1389 expectedmatch = null;
1390 addThis();
1391
1392 status = inSection(191);
1393 pattern = /ab\z/m;
1394 string = 'b\nca\n';
1395 actualmatch = string.match(pattern);
1396 expectedmatch = null;
1397 addThis();
1398
1399 status = inSection(192);
1400 pattern = /ab$/m;
1401 string = 'b\nca\n';
1402 actualmatch = string.match(pattern);
1403 expectedmatch = null;
1404 addThis();
1405
1406 status = inSection(193);
1407 pattern = /ab\Z/m;
1408 string = 'b\nca';
1409 actualmatch = string.match(pattern);
1410 expectedmatch = null;
1411 addThis();
1412
1413 status = inSection(194);
1414 pattern = /ab\z/m;
1415 string = 'b\nca';
1416 actualmatch = string.match(pattern);
1417 expectedmatch = null;
1418 addThis();
1419
1420 status = inSection(195);
1421 pattern = /ab$/m;
1422 string = 'b\nca';
1423 actualmatch = string.match(pattern);
1424 expectedmatch = null;
1425 addThis();
1426
1427 status = inSection(196);
1428 pattern = /abb\Z/;
1429 string = 'abb\nb\n';
1430 actualmatch = string.match(pattern);
1431 expectedmatch = null;
1432 addThis();
1433
1434 status = inSection(197);
1435 pattern = /abb\z/;
1436 string = 'abb\nb\n';
1437 actualmatch = string.match(pattern);
1438 expectedmatch = null;
1439 addThis();
1440
1441 status = inSection(198);
1442 pattern = /abb$/;
1443 string = 'abb\nb\n';
1444 actualmatch = string.match(pattern);
1445 expectedmatch = null;
1446 addThis();
1447
1448 status = inSection(199);
1449 pattern = /abb\z/;
1450 string = 'b\nabb\n';
1451 actualmatch = string.match(pattern);
1452 expectedmatch = null;
1453 addThis();
1454
1455 status = inSection(200);
1456 pattern = /abb\z/m;
1457 string = 'abb\nb\n';
1458 actualmatch = string.match(pattern);
1459 expectedmatch = null;
1460 addThis();
1461
1462 status = inSection(201);
1463 pattern = /abb\z/m;
1464 string = 'b\nabb\n';
1465 actualmatch = string.match(pattern);
1466 expectedmatch = null;
1467 addThis();
1468
1469 status = inSection(202);
1470 pattern = /abb\Z/;
1471 string = 'ac\nb\n';
1472 actualmatch = string.match(pattern);
1473 expectedmatch = null;
1474 addThis();
1475
1476 status = inSection(203);
1477 pattern = /abb\z/;
1478 string = 'ac\nb\n';
1479 actualmatch = string.match(pattern);
1480 expectedmatch = null;
1481 addThis();
1482
1483 status = inSection(204);
1484 pattern = /abb$/;
1485 string = 'ac\nb\n';
1486 actualmatch = string.match(pattern);
1487 expectedmatch = null;
1488 addThis();
1489
1490 status = inSection(205);
1491 pattern = /abb\Z/;
1492 string = 'b\nac\n';
1493 actualmatch = string.match(pattern);
1494 expectedmatch = null;
1495 addThis();
1496
1497 status = inSection(206);
1498 pattern = /abb\z/;
1499 string = 'b\nac\n';
1500 actualmatch = string.match(pattern);
1501 expectedmatch = null;
1502 addThis();
1503
1504 status = inSection(207);
1505 pattern = /abb$/;
1506 string = 'b\nac\n';
1507 actualmatch = string.match(pattern);
1508 expectedmatch = null;
1509 addThis();
1510
1511 status = inSection(208);
1512 pattern = /abb\Z/;
1513 string = 'b\nac';
1514 actualmatch = string.match(pattern);
1515 expectedmatch = null;
1516 addThis();
1517
1518 status = inSection(209);
1519 pattern = /abb\z/;
1520 string = 'b\nac';
1521 actualmatch = string.match(pattern);
1522 expectedmatch = null;
1523 addThis();
1524
1525 status = inSection(210);
1526 pattern = /abb$/;
1527 string = 'b\nac';
1528 actualmatch = string.match(pattern);
1529 expectedmatch = null;
1530 addThis();
1531
1532 status = inSection(211);
1533 pattern = /abb\Z/m;
1534 string = 'ac\nb\n';
1535 actualmatch = string.match(pattern);
1536 expectedmatch = null;
1537 addThis();
1538
1539 status = inSection(212);
1540 pattern = /abb\z/m;
1541 string = 'ac\nb\n';
1542 actualmatch = string.match(pattern);
1543 expectedmatch = null;
1544 addThis();
1545
1546 status = inSection(213);
1547 pattern = /abb$/m;
1548 string = 'ac\nb\n';
1549 actualmatch = string.match(pattern);
1550 expectedmatch = null;
1551 addThis();
1552
1553 status = inSection(214);
1554 pattern = /abb\Z/m;
1555 string = 'b\nac\n';
1556 actualmatch = string.match(pattern);
1557 expectedmatch = null;
1558 addThis();
1559
1560 status = inSection(215);
1561 pattern = /abb\z/m;
1562 string = 'b\nac\n';
1563 actualmatch = string.match(pattern);
1564 expectedmatch = null;
1565 addThis();
1566
1567 status = inSection(216);
1568 pattern = /abb$/m;
1569 string = 'b\nac\n';
1570 actualmatch = string.match(pattern);
1571 expectedmatch = null;
1572 addThis();
1573
1574 status = inSection(217);
1575 pattern = /abb\Z/m;
1576 string = 'b\nac';
1577 actualmatch = string.match(pattern);
1578 expectedmatch = null;
1579 addThis();
1580
1581 status = inSection(218);
1582 pattern = /abb\z/m;
1583 string = 'b\nac';
1584 actualmatch = string.match(pattern);
1585 expectedmatch = null;
1586 addThis();
1587
1588 status = inSection(219);
1589 pattern = /abb$/m;
1590 string = 'b\nac';
1591 actualmatch = string.match(pattern);
1592 expectedmatch = null;
1593 addThis();
1594
1595 status = inSection(220);
1596 pattern = /abb\Z/;
1597 string = 'ca\nb\n';
1598 actualmatch = string.match(pattern);
1599 expectedmatch = null;
1600 addThis();
1601
1602 status = inSection(221);
1603 pattern = /abb\z/;
1604 string = 'ca\nb\n';
1605 actualmatch = string.match(pattern);
1606 expectedmatch = null;
1607 addThis();
1608
1609 status = inSection(222);
1610 pattern = /abb$/;
1611 string = 'ca\nb\n';
1612 actualmatch = string.match(pattern);
1613 expectedmatch = null;
1614 addThis();
1615
1616 status = inSection(223);
1617 pattern = /abb\Z/;
1618 string = 'b\nca\n';
1619 actualmatch = string.match(pattern);
1620 expectedmatch = null;
1621 addThis();
1622
1623 status = inSection(224);
1624 pattern = /abb\z/;
1625 string = 'b\nca\n';
1626 actualmatch = string.match(pattern);
1627 expectedmatch = null;
1628 addThis();
1629
1630 status = inSection(225);
1631 pattern = /abb$/;
1632 string = 'b\nca\n';
1633 actualmatch = string.match(pattern);
1634 expectedmatch = null;
1635 addThis();
1636
1637 status = inSection(226);
1638 pattern = /abb\Z/;
1639 string = 'b\nca';
1640 actualmatch = string.match(pattern);
1641 expectedmatch = null;
1642 addThis();
1643
1644 status = inSection(227);
1645 pattern = /abb\z/;
1646 string = 'b\nca';
1647 actualmatch = string.match(pattern);
1648 expectedmatch = null;
1649 addThis();
1650
1651 status = inSection(228);
1652 pattern = /abb$/;
1653 string = 'b\nca';
1654 actualmatch = string.match(pattern);
1655 expectedmatch = null;
1656 addThis();
1657
1658 status = inSection(229);
1659 pattern = /abb\Z/m;
1660 string = 'ca\nb\n';
1661 actualmatch = string.match(pattern);
1662 expectedmatch = null;
1663 addThis();
1664
1665 status = inSection(230);
1666 pattern = /abb\z/m;
1667 string = 'ca\nb\n';
1668 actualmatch = string.match(pattern);
1669 expectedmatch = null;
1670 addThis();
1671
1672 status = inSection(231);
1673 pattern = /abb$/m;
1674 string = 'ca\nb\n';
1675 actualmatch = string.match(pattern);
1676 expectedmatch = null;
1677 addThis();
1678
1679 status = inSection(232);
1680 pattern = /abb\Z/m;
1681 string = 'b\nca\n';
1682 actualmatch = string.match(pattern);
1683 expectedmatch = null;
1684 addThis();
1685
1686 status = inSection(233);
1687 pattern = /abb\z/m;
1688 string = 'b\nca\n';
1689 actualmatch = string.match(pattern);
1690 expectedmatch = null;
1691 addThis();
1692
1693 status = inSection(234);
1694 pattern = /abb$/m;
1695 string = 'b\nca\n';
1696 actualmatch = string.match(pattern);
1697 expectedmatch = null;
1698 addThis();
1699
1700 status = inSection(235);
1701 pattern = /abb\Z/m;
1702 string = 'b\nca';
1703 actualmatch = string.match(pattern);
1704 expectedmatch = null;
1705 addThis();
1706
1707 status = inSection(236);
1708 pattern = /abb\z/m;
1709 string = 'b\nca';
1710 actualmatch = string.match(pattern);
1711 expectedmatch = null;
1712 addThis();
1713
1714 status = inSection(237);
1715 pattern = /abb$/m;
1716 string = 'b\nca';
1717 actualmatch = string.match(pattern);
1718 expectedmatch = null;
1719 addThis();
1720
1721 status = inSection(238);
1722 pattern = /a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/;
1723 string = 'x';
1724 actualmatch = string.match(pattern);
1725 expectedmatch = null;
1726 addThis();
1727
1728 status = inSection(239);
1729 pattern = /\GX.*X/;
1730 string = 'aaaXbX';
1731 actualmatch = string.match(pattern);
1732 expectedmatch = null;
1733 addThis();
1734
1735 status = inSection(240);
1736 pattern = /\.c(pp|xx|c)?$/i;
1737 string = 'Changes';
1738 actualmatch = string.match(pattern);
1739 expectedmatch = null;
1740 addThis();
1741
1742 status = inSection(241);
1743 pattern = /^([a-z]:)/;
1744 string = 'C:/';
1745 actualmatch = string.match(pattern);
1746 expectedmatch = null;
1747 addThis();
1748
1749 status = inSection(242);
1750 pattern = /(\w)?(abc)\1b/;
1751 string = 'abcab';
1752 actualmatch = string.match(pattern);
1753 expectedmatch = null;
1754 addThis();
1755
1756 /* ECMA doesn't support (?(
1757 status = inSection(243);
1758 pattern = /^(a)?(?(1)a|b)+$/;
1759 string = 'a';
1760 actualmatch = string.match(pattern);
1761 expectedmatch = null;
1762 addThis();
1763 */
1764
1765
1766
1767 //-----------------------------------------------------------------------------
1768 test();
1769 //-----------------------------------------------------------------------------
1770
1771
1772
1773 function addThis()
1774 {
1775 if(omitCurrentSection())
1776 return;
1777
1778 statusmessages[i] = status;
1779 patterns[i] = pattern;
1780 strings[i] = string;
1781 actualmatches[i] = actualmatch;
1782 expectedmatches[i] = expectedmatch;
1783 i++;
1784 }
1785
1786
1787 function omitCurrentSection()
1788 {
1789 try
1790 {
1791 // current section number is in global status variable
1792 var n = status.match(/(\d+)/)[1];
1793 return ((n < cnLBOUND) || (n > cnUBOUND));
1794 }
1795 catch(e)
1796 {
1797 return false;
1798 }
1799 }
1800
1801
1802 function test()
1803 {
1804 enterFunc ('test');
1805 printBugNumber(BUGNUMBER);
1806 printStatus (summary);
1807 testRegExp(statusmessages, patterns, strings, actualmatches, expectedmatches);
1808 exitFunc ('test');
1809 }