Lines Matching defs:ok

20 if ($x =~ /^abc/) {print "ok 1\n";} else {print "not ok 1\n";}
21 if ($x !~ /^def/) {print "ok 2\n";} else {print "not ok 2\n";}
24 if ($x =~ /^def/) {print "ok 3\n";} else {print "not ok 3\n";}
28 if (/^([0-9][0-9]*)/) {print "ok 4\n";} else {print "not ok 4\n";}
30 if ($x =~ /^xxx/) {print "not ok 5\n";} else {print "ok 5\n";}
31 if ($x !~ /^abc/) {print "not ok 6\n";} else {print "ok 6\n";}
33 if ($x =~ /def/) {print "ok 7\n";} else {print "not ok 7\n";}
34 if ($x !~ /def/) {print "not ok 8\n";} else {print "ok 8\n";}
36 if ($x !~ /.def/) {print "ok 9\n";} else {print "not ok 9\n";}
37 if ($x =~ /.def/) {print "not ok 10\n";} else {print "ok 10\n";}
39 if ($x =~ /\ndef/) {print "ok 11\n";} else {print "not ok 11\n";}
40 if ($x !~ /\ndef/) {print "not ok 12\n";} else {print "ok 12\n";}
44 print "ok 13\n";
46 print "not ok 13\n";
49 print "ok 14\n";
51 print "not ok 14\n";
54 if (/a+b?c+/) {print "not ok 15\n";} else {print "ok 15\n";}
57 if (/a+b?c+/) {print "ok 16\n";} else {print "not ok 16\n";}
58 if (/a*b+c*/) {print "ok 17\n";} else {print "not ok 17\n";}
61 if (/a*b?c*/) {print "ok 18\n";} else {print "not ok 18\n";}
62 if (/a*b+c*/) {print "not ok 19\n";} else {print "ok 19\n";}
65 if (/bcd|xyz/) {print "ok 20\n";} else {print "not ok 20\n";}
66 if (/xyz|bcd/) {print "ok 21\n";} else {print "not ok 21\n";}
68 if (m|bc/*d|) {print "ok 22\n";} else {print "not ok 22\n";}
70 if (/^$_$/) {print "ok 23\n";} else {print "not ok 23\n";}
73 if ("ab\ncd\n" =~ /^cd/) {print "ok 24\n";} else {print "not ok 24\n";}
80 @XXX = ('ok 25','not ok 25', 'ok 26','not ok 26','not ok 27');
84 /not ok 26/ && reset 'X';
88 print "not ok 27\n";
92 print "ok 27\n";
96 if ($& eq 'xyz') {print "ok 28\n";} else {print "not ok 28\n";}
101 if ($& eq 'xyz') {print "ok 29\n";} else {print "not ok 29\n";}
106 if ($& eq 'xyz') {print "ok 30\n";} else {print "not ok 30\n";}
110 if ("$`:$&:$'" eq 'abc:def:ghi') {print "ok 31\n";} else {print "not ok 31\n";}
113 if ("$`:$&:$'" eq 'ab:cde:fghi') {print "ok 32\n";} else {print "not ok 32\n";}
116 if ("$`:$&:$'" eq 'abc:def:ghi') {print "ok 33\n";} else {print "not ok 33\n";}
120 if ($1 eq 'time for all') {print "ok 34\n";} else {print "not ok 34 $1\n";}
123 print /( {3,4})/ ? "ok 35\n" : "not ok 35\n";
124 print $1 eq ' ' ? "ok 36\n" : "not ok 36\n";
125 print /( {4,})/ ? "not ok 37\n" : "ok 37\n";
126 print /( {2,3}.)/ ? "ok 38\n" : "not ok 38\n";
127 print $1 eq ' y' ? "ok 39\n" : "not ok 39\n";
128 print /(y{2,3}.)/ ? "ok 40\n" : "not ok 40\n";
129 print $1 eq 'yyy ' ? "ok 41\n" : "not ok 41\n";
130 print /x {3,4}/ ? "not ok 42\n" : "ok 42\n";
131 print /^xxx {3,4}/ ? "not ok 43\n" : "ok 43\n";
136 ? "ok 44\n"
137 : "not ok 44\n";
144 ? "ok 45\n"
145 : "not ok 45\n";
153 ? "ok 46\n"
154 : "not ok 46 `@words'\n";
159 ? "ok 47\n"
160 : "not ok 47 `@words'\n";
189 print $x eq '505550555' ? "ok 48\n" : "not ok 48 $x\n";
192 print "abc" =~ /^abc$|$xyz/ ? "ok 49\n" : "not ok 49\n";
196 print $@ eq "" ? "ok 50\n" : "not ok 50\n";
197 print $result eq "abc:bc" ? "ok 51\n" : "not ok 51\n";
202 print $` eq "" ? "ok 52\n" : "not ok 52\n" if $x;
204 print $` eq "abcfoo" ? "ok 53\n" : "not ok 53\n" if $x;
206 print $x == 0 ? "ok 54\n" : "not ok 54\n";
209 print $` eq "" ? "ok 55\n" : "not ok 55\n" if $x;
211 print $` eq "abcfoo" ? "ok 56\n" : "not ok 56\n" if $x;
213 print $x == 0 ? "ok 57\n" : "not ok 57\n";
216 print $' eq "fooabcbar" ? "ok 58\n" : "not ok 58\n" if $x;
218 print $' eq "bar" ? "ok 59\n" : "not ok 59\n" if $x;
221 print scalar @x == 2 ? "ok 60\n" : "not ok 60\n";
227 print "ok 61\n";
230 print "ok 62\n";
235 print "ok 63\n";
240 print "ok 64\n";
245 print "ok 65\n";
257 print "ok 66\n";
261 print "ok 67\n";
265 print "ok 68\n";
270 print "ok 69\n";
275 print "ok 70\n";
283 print "ok 71\n";
286 print "ok 72\n";
293 print "ok $test\n";
297 print "ok $test\n";
317 print "ok $test\n";
321 print "ok $test\n";
363 print "ok $test\n";
369 print "ok $test\n";
373 print "ok $test\n";
383 print "ok $test\n";
387 print "ok $test\n";
393 print "ok $test\n";
398 print "ok $test\n";
405 print "ok $test\n";
416 print "ok $test\n";
424 print "ok $test\n";
430 print "ok $test\n";
436 print "ok $test\n";
441 print "ok $test\n";
451 print "ok $test\n";
457 print "ok $test\n";
463 print "ok $test\n";
469 print "ok $test\n";
473 print "ok $test\n";
477 print "ok $test\n";
481 print "ok $test\n";
485 print "ok $test\n";
489 print "ok $test\n";
493 print "ok $test\n";
500 print "ok $test\n";
508 print "ok $test\n";
516 print "ok $test\n";
525 print "ok $test\n";
532 print "ok $test\n";
538 print "ok $test\n";
545 print "ok $test\n";
554 print "ok $test\n";
557 print "ok $test\n";
560 print "ok $test\n";
568 print "ok $test\n";
579 print "ok $test\n";
582 print "ok $test\n";
585 print "ok $test\n";
596 print "ok $test\n";
599 print "ok $test\n";
611 print "ok $test\n";
626 print "ok $test\n"; $test++; # now a fatal croak
629 print "ok $test\n"; $test++; # now a fatal croak
635 print "ok $test\n";
640 print "ok $test\n";
645 print "ok $test\n";
650 print "ok $test\n";
655 print "ok $test\n";
659 print "ok $test\n";
664 print "ok $test\n";
669 print "ok $test\n";
673 print "ok $test\n";
677 print "ok $test\n";
681 print "ok $test\n";
686 print "ok $test\n";
691 print "ok $test\n";
695 print "ok $test\n";
699 print "ok $test\n";
703 print "ok $test\n";
708 print "ok $test\n";
713 print "ok $test\n";
717 print "ok $test\n";
721 print "ok $test\n";
726 print "ok $test\n";
732 print "ok $test\n";
738 print "ok $test\n";
744 print "ok $test\n";
750 print "ok $test\n";
755 print "ok $test\n";
762 print "ok $test\n";
769 print "ok $test\n";
773 print "ok $test\n";
777 print "ok $test\n";
781 print "ok $test\n";
785 print "ok $test\n";
789 print "ok $test\n";
796 print "ok $test\n";
804 print "ok $test\n";
813 print "ok $test\n";
820 print "ok $test\n";
828 print "ok $test\n";
836 print "ok $test\n";
847 print "ok $test\n";
861 print "ok $test\n";
871 print "ok $test\n";
877 print "ok $test\n";
883 print "ok $test\n";
887 print "ok $test\n";
894 print "ok $test\n";
899 print "ok $test\n";
905 print "ok $test\n";
911 print "ok $test\n";
915 { foo => "ok $test\n".$^X }->{foo} =~ /^(.*)\n/g;
926 print "ok $test\n";
930 print "ok $test\n";
938 print "ok $test\n"; # Did we survive?
942 print "ok $test\n"; # Did we survive?
947 print "ok $test\n";
953 print "ok $test\n";
959 print "ok $test\n";
964 print "ok $test\n";
970 print "ok $test\n";
978 print "ok $test\n";
984 print "ok $test\n";
990 print "ok $test\n";
996 print "ok $test\n";
1002 print "ok $test\n";
1008 print "ok $test\n";
1014 print "ok $test\n";
1020 print "ok $test\n";
1026 print "ok $test\n";
1032 print "ok $test\n";
1038 print "ok $test\n";
1044 print "ok $test\n";
1049 print "ok $test\n";
1053 print "ok $test\n";
1057 print "ok $test\n";
1061 print "ok $test\n";
1074 print "ok $test\n";
1079 print "ok $test\n";
1083 print "ok $test\n";
1092 print $w ? "not " : "", "ok $test\n";
1110 print "ok $test # @space0\n";
1114 print "ok $test # @space1\n";
1118 print "ok $test # @space2\n";
1123 print "ok $test\n";
1129 print "ok $test\n";
1136 print "ok 232\n";
1138 print "ok 233\n";
1140 print "not ok 233\n";
1144 print "ok 234\n";
1146 print "not ok 234\n";
1149 print "ok 235\n";
1151 print "not ok 235\n";
1155 print "ok 234\n";
1157 print "not ok 234\n";
1160 print "ok 235\n";
1162 print "not ok 235\n";
1166 print "not ok $_ # ord('A') == $ordA\n";
1170 print "ok 236\n";
1172 print "not ok 236\n";
1176 print "not ok $_\n";
1181 print "ok 237\n";
1185 print "ok 238\n";
1187 print "not ok 238\n";
1191 print "ok 238\n";
1193 print "not ok 238\n";
1196 print "not ok 238 # ord('A') == $ordA\n";
1200 print "not ok $_\n";
1204 print "ok 239\n";
1208 print "ok 240\n";
1210 print "not ok 240\n";
1214 print "ok 240\n";
1216 print "not ok 240\n";
1219 print "not ok 240 # ord('A') == $ordA\n";
1223 print "not ok $_\n";
1232 print "ok 241\n";
1240 print "ok 242\n";
1242 print "not ok 242\n";
1246 print "ok 243\n";
1248 print "not ok 243\n";
1257 print "ok 244\n";
1259 print "not ok 244\n";
1262 print "ok 245\n";
1264 print "not ok 245\n";
1268 print "ok $_ # Skip: only in EBCDIC\n";
1273 print "ok 246\n";
1276 print "ok 247\n";
1286 print $latin eq "stra\337e" ? "ok $test\n" : # 248,249
1287 "#latin[$latin]\nnot ok $test\n";
1297 print "ok 250\n";
1300 print "ok 251\n";
1303 print "ok 252\n";
1306 print "ok 253\n";
1309 print "ok 254\n";
1312 print "ok 255\n";
1315 print "ok 256\n";
1318 print "ok 257\n";
1327 print "ok 258\n";
1337 print "ok 259\n";
1346 print "ok 260\n";
1357 print "ok 261\n";
1364 print "ok 262\n";
1367 print "ok 263\n";
1403 print "ok $test\n"; $test++;
1405 print "ok $test\n"; $test++;
1408 print "ok $test\n"; $test++;
1410 print "ok $test\n"; $test++;
1415 print "ok $test\n"; $test++;
1417 print "ok $test\n"; $test++;
1420 print "ok $test\n"; $test++;
1422 print "ok $test\n"; $test++;
1426 print "ok $test # Skip: in EBCDIC\n"; $test++;
1427 print "ok $test # Skip: in EBCDIC\n"; $test++;
1431 print "ok $test\n"; $test++;
1433 print "ok $test\n"; $test++;
1436 print "ok $test\n"; $test++;
1438 print "ok $test\n"; $test++;
1444 print "ok $test\n"; $test++;
1446 print "ok $test\n"; $test++;
1449 print "ok $test\n"; $test++;
1451 print "ok $test\n"; $test++;
1456 print "ok $test\n"; $test++;
1458 print "ok $test\n"; $test++;
1461 print "ok $test\n"; $test++;
1463 print "ok $test\n"; $test++;
1468 print "ok $test\n"; $test++;
1470 print "ok $test\n"; $test++;
1473 print "ok $test\n"; $test++;
1475 print "ok $test\n"; $test++;
1480 print "ok $test\n"; $test++;
1482 print "ok $test\n"; $test++;
1485 print "ok $test\n"; $test++;
1487 print "ok $test\n"; $test++;
1492 print "ok $test\n"; $test++;
1494 print "ok $test\n"; $test++;
1497 print "ok $test\n"; $test++;
1499 print "ok $test\n"; $test++;
1504 print "ok $test\n"; $test++;
1506 print "ok $test\n"; $test++;
1509 print "ok $test\n"; $test++;
1511 print "ok $test\n"; $test++;
1516 print "ok $test\n"; $test++;
1518 print "ok $test\n"; $test++;
1521 print "ok $test\n"; $test++;
1523 print "ok $test\n"; $test++;
1528 print "ok $test\n"; $test++;
1530 print "ok $test\n"; $test++;
1533 print "ok $test\n"; $test++;
1535 print "ok $test\n"; $test++;
1540 print "ok $test\n"; $test++;
1542 print "ok $test\n"; $test++;
1545 print "ok $test\n"; $test++;
1547 print "ok $test\n"; $test++;
1552 print "ok $test\n"; $test++;
1554 print "ok $test\n"; $test++;
1557 print "ok $test\n"; $test++;
1559 print "ok $test\n"; $test++;
1568 print "ok 576\n";
1571 print "ok 577\n";
1574 print "ok 578\n";
1577 print "ok 579\n";
1580 print "ok 580\n";
1582 for (576..580) { print "not ok $_\n" }
1593 print "ok 581\n";
1619 print "ok " . $test++ . "\n";
1629 print "ok 587\n";
1636 print "ok 588\n";
1639 print "ok 589\n";
1642 print "ok 590\n";
1645 print "ok 591\n";
1648 print "ok 592\n";
1651 print "ok 593\n";
1654 print "ok 594\n";
1661 print "ok 595\n";
1664 print "ok 596\n";
1667 print "ok 597\n";
1670 print "ok 598\n";
1673 print "ok 599\n";
1676 print "ok 600\n";
1679 print "ok 601\n";
1686 print "ok 602\n";
1689 print "ok 603\n";
1692 print "ok 604\n";
1696 print "ok 605\n";
1699 print "ok 606\n";
1702 print "ok 607\n";
1705 print "ok 608\n";
1712 print "ok 609\n";
1715 print "ok 610\n";
1718 print "ok 611\n";
1721 print "ok 612\n";
1724 print "ok 613\n";
1727 print "ok 614\n";
1730 print "ok 615\n";
1742 print "ok 616\n";
1747 print "ok 617\n";
1752 print "ok 618\n";
1757 print "ok 619\n";
1762 print "ok 620\n";
1767 print "ok 621\n";
1774 print "ok 622\n";
1779 print "ok 623\n";
1784 print "ok 624\n";
1789 print "ok 625\n";
1798 print "ok 626\n";
1801 print "ok 627\n";
1804 print "ok 628\n";
1807 print "ok 629\n";
1810 print "ok 630\n";
1820 /x && print "ok 631\n";
1828 /x && print "ok 632\n";
1834 print "ok 633\n";
1836 print "not ok 633\n";
1839 print "ok 634\n";
1841 print "not ok 634\n";
1848 print "ok 635\n";
1851 print "ok 636\n";
1855 print "ok 637\n";
1858 print "ok 638\n";
1861 print "ok 639\n";
1867 $T="ok 640\n";if ($x =~ /cde/ and not defined $^N) {print $T} else {print "not $T"};
1868 $T="ok 641\n";if ($x =~ /(cde)/ and $^N eq "cde") {print $T} else {print "not $T"};
1869 $T="ok 642\n";if ($x =~ /(c)(d)(e)/ and $^N eq "e") {print $T} else {print "not $T"};
1870 $T="ok 643\n";if ($x =~ /(c(d)e)/ and $^N eq "cde") {print $T} else {print "not $T"};
1871 $T="ok 644\n";if ($x =~ /(foo)|(c(d)e)/ and $^N eq "cde") {print $T} else {print "not $T"};
1872 $T="ok 645\n";if ($x =~ /(c(d)e)|(foo)/ and $^N eq "cde") {print $T} else {print "not $T"};
1873 $T="ok 646\n";if ($x =~ /(c(d)e)|(abc)/ and $^N eq "abc") {print $T} else {print "not $T"};
1874 $T="ok 647\n";if ($x =~ /(c(d)e)|(abc)x/ and $^N eq "cde") {print $T} else {print "not $T"};
1875 $T="ok 648\n";if ($x =~ /(c(d)e)(abc)?/ and $^N eq "cde") {print $T} else {print "not $T"};
1876 $T="ok 649\n";if ($x =~ /(?:c(d)e)/ and $^N eq "d" ) {print $T} else {print "not $T"};
1877 $T="ok 650\n";if ($x =~ /(?:c(d)e)(?:f)/ and $^N eq "d" ) {print $T} else {print "not $T"};
1878 $T="ok 651\n";if ($x =~ /(?:([abc])|([def]))*/ and $^N eq "f" ){print $T} else {print "not $T"};
1879 $T="ok 652\n";if ($x =~ /(?:([ace])|([bdf]))*/ and $^N eq "f" ){print $T} else {print "not $T"};
1880 $T="ok 653\n";if ($x =~ /(([ace])|([bd]))*/ and $^N eq "e" ){print $T} else {print "not $T"};
1882 $T="ok 654\n";if($x =~ /(([ace])|([bdf]))*/ and $^N eq "f" ){print $T} else {print "not $T"};
1886 $T="ok 655\n";if ($^N eq "e" ){print $T} else {print "not $T"};
1891 $T="ok 656\n";if ($x =~ /a([abc])(?{$y=$^N})c/ and $y eq "b" ){print $T} else {print "not $T"};
1892 $T="ok 657\n";if ($x =~ /a([abc]+)(?{$y=$^N})d/ and $y eq "bc"){print $T} else {print "not $T"};
1893 $T="ok 658\n";if ($x =~ /a([abcdefg]+)(?{$y=$^N})d/ and $y eq "bc"){print $T} else {print "not $T"};
1894 $T="ok 659\n";if ($x =~ /(a([abcdefg]+)(?{$y=$^N})d)(?{$z=$^N})e/ and $y eq "bc" and $z eq "abcd")
1896 $T="ok 660\n";if ($x =~ /(a([abcdefg]+)(?{$y=$^N})de)(?{$z=$^N})/ and $y eq "bc" and $z eq "abcde")
1902 print "ok 661\n";
1905 print "ok 662\n";
1908 print "ok 663\n";
1911 print "ok 664\n";
1915 # print "ok 665\n";
1916 print "ok 665 # 0xb5 moved from Greek to Common with Unicode 4.0.1\n";
1919 print "ok 666\n";
1922 print "ok 667\n";
1925 print "ok 668\n";
1928 print "ok 669\n";
1931 print "ok 670\n";
1934 print "ok 671\n";
1937 print "ok 672\n";
1951 print "ok 673\n";
1955 print "ok 674\n";
1957 print "ok $_ # Skip: EBCDIC\n" for 673..674;
1967 print "ok 675\n";
1971 print "ok 676\n" if @a == 6 && "@a" eq "f o o b a r";
1974 print "ok 677\n" if @a == 7 && "@a" eq "f o o \n b a r";
1977 print "ok 678\n" if @a == 7 && "@a" eq "f o o \n b a r";
1980 print "ok 679\n" if @a == 7 && "@a" eq "f o o \n b a r";
1983 print "ok 680\n" if @a == 7 && "@a" eq "f o o \x{100} b a r";
1986 print "ok 681\n" if @a == 8 && "@a" eq "f o o \n \x{100} b a r";
1991 print "ok 682\n" if @a == 9 && "@a" eq "f o o \n $a $b b a r";
1994 print "ok 683\n" if @a == 9 && "@a" eq "f o o \n $a $b b a r";
2002 print "$a $b $c" eq 'ba:ba ad:ae 10' ? "ok 684\n" : "not ok 684\t# $a $b $c\n";
2019 print "ok 685\n";
2023 print "ok 686\n";
2030 sub ok ($$) {
2031 my($ok, $name) = @_;
2033 printf "%sok %d - %s\n", ($ok ? "" : "not "), $test, $name;
2035 printf "# Failed test at line %d\n", (caller)[2] unless $ok;
2038 return $ok;
2044 ok ($x =~ /^\x4EE$/, "Check only 2 bytes of hex are matched.");
2047 ok ($x =~ /^\x4Ei$/, "Check that invalid hex digit stops it (2)");
2050 ok ($x =~ /^\x4j$/, "Check that invalid hex digit stops it (1)");
2053 ok ($x =~ /^\xk$/, "Check that invalid hex digit stops it (0)");
2056 ok ($x =~ /^\xx$/, "\\xx isn't to be treated as \\0");
2059 ok ($x =~ /^\xxa$/, "\\xxa isn't to be treated as \\xa");
2062 ok ($x =~ /^\x9_b$/, "\\x9_b isn't to be treated as \\x9b");
2067 ok ($x =~ /^[\x4EE]{2}$/, "Check only 2 bytes of hex are matched.");
2070 ok ($x =~ /^[\x4Ei]{2}$/, "Check that invalid hex digit stops it (2)");
2073 ok ($x =~ /^[\x4j]{2}$/, "Check that invalid hex digit stops it (1)");
2076 ok ($x =~ /^[\xk]{2}$/, "Check that invalid hex digit stops it (0)");
2079 ok ($x =~ /^[\xx]{2}$/, "\\xx isn't to be treated as \\0");
2082 ok ($x =~ /^[\xxa]{3}$/, "\\xxa isn't to be treated as \\xa");
2085 ok ($x =~ /^[\x9_b]{3}$/, "\\x9_b isn't to be treated as \\x9b");
2093 ok ($x =~ /^\x{9_b}$/, "\\x{9_b} is to be treated as \\x9b");
2096 ok ($x =~ /^\x{9_b}y$/, "\\x{9_b} is to be treated as \\x9b (again)");
2099 ok ($x =~ /^\x{9b_}y$/, "\\x{9b_} is to be treated as \\x9b");
2102 ok ($x =~ /^\x{9_bq}y$/, "\\x{9_bc} is to be treated as \\x9b");
2105 ok ($x =~ /^\x{x9b}y$/, "\\x{x9b} is to be treated as \\x0");
2108 ok ($x =~ /^\x{0x9b}y$/, "\\x{0x9b} is to be treated as \\x0");
2111 ok ($x =~ /^\x{09b}y$/, "\\x{09b} is to be treated as \\x9b");
2116 ok ($x =~ /^[\x{9_b}]$/, "\\x{9_b} is to be treated as \\x9b");
2119 ok ($x =~ /^[\x{9_b}y]{2}$/, "\\x{9_b} is to be treated as \\x9b (again)");
2122 ok ($x =~ /^[\x{9b_}y]{2}$/, "\\x{9b_} is to be treated as \\x9b");
2125 ok ($x =~ /^[\x{9_bq}y]{2}$/, "\\x{9_bc} is to be treated as \\x9b");
2128 ok ($x =~ /^[\x{x9b}y]{2}$/, "\\x{x9b} is to be treated as \\x0");
2131 ok ($x =~ /^[\x{0x9b}y]{2}$/, "\\x{0x9b} is to be treated as \\x0");
2134 ok ($x =~ /^[\x{09b}y]{2}$/, "\\x{09b} is to be treated as \\x9b");
2141 print "ok 715\n";
2149 print "ok 716\n";
2153 print "ok 717\n";
2158 print "ok 718\n";
2163 print "ok 719\n";
2166 print "ok 720\n";
2169 print "ok 721\n";
2172 print "ok 722\n";
2175 print "ok 723\n";
2178 print "ok 724\n";
2181 print "ok 725\n";
2184 print "ok 726\n";
2187 print "ok 727\n";
2190 print "ok 728\n";
2193 print "ok 729\n";
2196 print "ok 730\n";
2199 print "ok 731\n";
2202 print "ok 732\n";
2205 print "ok 733\n";
2208 print "ok 734\n";
2211 print "ok 735\n";
2214 print "ok 736\n";
2217 print "ok 737\n";
2220 print "ok 738\n";
2226 print "ok 739\n";
2229 print "ok 740\n";
2234 print "ok 741\n";
2237 print "ok 742\n";
2242 print "ok 743\n";
2245 print "ok 744\n";
2250 print "ok 745\n";
2253 print "ok 746\n";
2258 print "ok 747\n";
2265 print "ok 748\n";
2268 print "ok 749\n";
2271 print "ok 750\n";
2279 print "ok 751\n";
2283 print "ok 752\n";
2287 print "ok 753\n";
2294 print "ok 754\n";
2297 print "ok 755\n";
2300 print "ok 756\n";
2303 print "ok 757\n";
2306 print "ok 758\n";
2309 print "ok 759\n";
2312 print "ok 760\n";
2315 print "ok 761\n";
2318 print "ok 762\n";
2321 print "ok 763\n";
2324 print "ok 764\n";
2327 print "ok 765\n";
2330 print "ok 766\n";
2333 print "ok 767\n";
2336 print "ok 768\n";
2339 print "ok 769\n";
2342 print "ok 770\n";
2345 print "ok 771\n";
2348 print "ok 772\n";
2351 print "ok 773\n";
2362 print $lower =~ m/$UPPER/i ? "ok 774\n" : "not ok 774\n";
2363 print $UPPER =~ m/$lower/i ? "ok 775\n" : "not ok 775\n";
2364 print $lower =~ m/[$UPPER]/i ? "ok 776\n" : "not ok 776\n";
2365 print $UPPER =~ m/[$lower]/i ? "ok 777\n" : "not ok 777\n";
2372 print $lower =~ m/$UPPER/i ? "ok 778\n" : "not ok 778\n";
2373 print $UPPER =~ m/$lower/i ? "ok 779\n" : "not ok 779\n";
2374 print $lower =~ m/[$UPPER]/i ? "ok 780\n" : "not ok 780\n";
2375 print $UPPER =~ m/[$lower]/i ? "ok 781\n" : "not ok 781\n";
2381 print $lower =~ m/$UPPER/i ? "ok 782\n" : "not ok 782\n";
2382 print $UPPER =~ m/$lower/i ? "ok 783\n" : "not ok 783\n";
2383 print $lower =~ m/[$UPPER]/i ? "ok 784\n" : "not ok 784\n";
2384 print $UPPER =~ m/[$lower]/i ? "ok 785\n" : "not ok 785\n";
2397 print "_:$char:_" =~ m/_:$SIGMA:_/i ? "not ok 786\n" : "ok 786\n";
2406 "ok 787\n" : "not ok 787 # $1\n";
2408 "ok 788\n" : "not ok 788 # $1\n";
2410 "ok 789\n" : "not ok 789 # $1\n";
2412 "ok 790\n" : "not ok 790 # $1\n";
2415 "ok 791\n" : "not ok 791 # $1\n";
2419 "ok 792\n" : "not ok 792 # $1\n";
2425 print "!abc!" =~ /a\Cc/ ? "ok 793\n" : "not ok 793\n";
2426 print "!abc!" =~ /a\Xc/ ? "ok 794\n" : "not ok 794\n";
2436 print $SIGMA =~ /$SIGMA/i ? "ok 795\n" : "not ok 795\n";
2437 print $SIGMA =~ /$Sigma/i ? "ok 796\n" : "not ok 796\n";
2438 print $SIGMA =~ /$sigma/i ? "ok 797\n" : "not ok 797\n";
2440 print $Sigma =~ /$SIGMA/i ? "ok 798\n" : "not ok 798\n";
2441 print $Sigma =~ /$Sigma/i ? "ok 799\n" : "not ok 799\n";
2442 print $Sigma =~ /$sigma/i ? "ok 800\n" : "not ok 800\n";
2444 print $sigma =~ /$SIGMA/i ? "ok 801\n" : "not ok 801\n";
2445 print $sigma =~ /$Sigma/i ? "ok 802\n" : "not ok 802\n";
2446 print $sigma =~ /$sigma/i ? "ok 803\n" : "not ok 803\n";
2448 print $SIGMA =~ /[$SIGMA]/i ? "ok 804\n" : "not ok 804\n";
2449 print $SIGMA =~ /[$Sigma]/i ? "ok 805\n" : "not ok 805\n";
2450 print $SIGMA =~ /[$sigma]/i ? "ok 806\n" : "not ok 806\n";
2452 print $Sigma =~ /[$SIGMA]/i ? "ok 807\n" : "not ok 807\n";
2453 print $Sigma =~ /[$Sigma]/i ? "ok 808\n" : "not ok 808\n";
2454 print $Sigma =~ /[$sigma]/i ? "ok 809\n" : "not ok 809\n";
2456 print $sigma =~ /[$SIGMA]/i ? "ok 810\n" : "not ok 810\n";
2457 print $sigma =~ /[$Sigma]/i ? "ok 811\n" : "not ok 811\n";
2458 print $sigma =~ /[$sigma]/i ? "ok 812\n" : "not ok 812\n";
2469 "ok 813\n" : "not ok 813\n";
2474 "ok 814\n" : "not ok 814\n";
2479 "ok 815\n" : "not ok 815\n";
2483 "ok 816\n" : "not ok 816\n";
2488 "ok 817\n" : "not ok 817\n";
2493 "ok 818\n" : "not ok 818\n";
2498 "ok 819\n" : "not ok 819\n";
2503 "ok 820\n" : "not ok 820\n";
2508 "ok 821\n" : "not ok 821\n";
2513 "ok 822\n" : "not ok 822\n";
2518 "ok 823\n" : "not ok 823\n";
2523 "ok 824\n" : "not ok 824\n";
2528 "ok 825\n" : "not ok 825\n";
2539 print "ok 826\n";
2541 print "not ok 826\n";
2550 print "ok 827\n";
2552 print "not ok 827\n";
2562 print "ok 828\n";
2564 print "not ok 828\n";
2579 "ok 829\n" : "not ok 829\n";
2581 "ok 830\n" : "not ok 830\n";
2583 "ok 831\n" : "not ok 831\n";
2586 "ok 832\n" : "not ok 832\n";
2588 "ok 833\n" : "not ok 833\n";
2590 "ok 834\n" : "not ok 834\n";
2599 /\N{LATIN SMALL LETTER SHARP S}/ ? "ok 835\n" : "not ok 835\n";
2602 /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 836\n" : "not ok 836\n";
2605 /[\N{LATIN SMALL LETTER SHARP S}]/ ? "ok 837\n" : "not ok 837\n";
2608 /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 838\n" : "not ok 838\n";
2611 /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 839\n" : "not ok 839\n";
2614 /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 840\n" : "not ok 840\n";
2617 /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 841\n" : "not ok 841\n";
2620 /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 842\n" : "not ok 842\n";
2623 "ok 843\n" : "not ok 843\n";
2626 "ok 844\n" : "not ok 844\n";
2633 print "<\x{100}\x{0085}>" =~ /<\x{100}\s>/ ? "ok 845\n" : "not ok 845\n";
2634 print "<\x{2028}>" =~ /<\s>/ ? "ok 846\n" : "not ok 846\n";
2635 print "<\x{2029}>" =~ /<\s>/ ? "ok 847\n" : "not ok 847\n";
2646 "not ok 848\n" : "ok 848\n";
2654 print join("", @c) eq $s ? "ok 849\n" : "not ok 849\n";
2668 print $r1 eq $r2 ? "ok 850\n" : "not ok 850\n";
2674 print "A\x{100}B" =~ /(?<=A.)B/ ? "ok 851\n" : "not ok 851\n";
2675 print "A\x{200}\x{300}B" =~ /(?<=A..)B/ ? "ok 852\n" : "not ok 852\n";
2676 print "\x{400}AB" =~ /(?<=\x{400}.)B/ ? "ok 853\n" : "not ok 853\n";
2677 print "\x{500\x{600}}B" =~ /(?<=\x{500}.)B/ ? "ok 854\n" : "not ok 854\n";
2692 print $m1 == $m2 ? "ok $i\n" : "not ok $i # $m1 $m2\n";
2708 "ok $i\n" : "not ok $i # debug: $x\n";
2717 print $s eq "s \x{100}" x 4 ? "ok 861\n" : "not ok 861\n";
2726 print $u eq "\x{100}\x{100}\x{100}" ? "ok 862\n" : "not ok 862\n";
2730 print $u eq "f\x{100}\x{100}b\x{100}r" ? "ok 863\n" : "not ok 863\n";
2733 print $u eq "feeber" ? "ok 864\n" : "not ok 864\n";
2746 print "xxx" =~ /$re/ ? "not ok $test\n" : "ok $test\n";
2748 print +($subst = "xxx") =~ s/$re// ? "not ok $test\n" : "ok $test\n";
2752 print "xxx" =~ /$re/ ? "ok $test\n" : "not ok $test\n";
2755 print $subst eq '' ? "ok $test\n" : "not ok $test\t# $subst\n";
2759 print "xx$c" =~ /$re/ ? "ok $test\n" : "not ok $test\n";
2762 print $subst eq $c ? "ok $test\n" : "not ok $test\n";
2764 print "xy$c" =~ /$re/ ? "not ok $test\n" : "ok $test\n";
2766 print +($subst = "xy$c") =~ /$re/ ? "not ok $test\n" : "ok $test\n";
2770 print "xyz" =~ /$re/ ? "ok $test\n" : "not ok $test\n";
2773 print $subst eq '' ? "ok $test\n" : "not ok $test\n";
2784 print eval {"ABCDE" =~ $R} ? "ok $test\n" : "not ok $test\n";
2787 print eval {"ABCDE" =~ m/$R/} ? "ok $test\n" : "not ok $test\n";
2790 print eval {"ABCDE" =~ m/($R)/} ? "ok $test\n" : "not ok $test\n";
2798 print eval { "a" =~ /\pq / } ? "not ok $test\n" : "ok $test\n";
2801 print eval { "a" =~ /\p{qrst} / } ? "not ok $test\n" : "ok $test\n";
2813 print "ok $test\n";
2815 printf "not ok %s\t# 'match once' %s on %s iteration\n", $test,
2823 print "ok $test\n";
2825 printf "not ok %s\t# expected '%s', got '%s'\n", $test, $test, $result;
2864 print "\x{3040}" =~ /\p{InKana1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2865 print "\x{303F}" =~ /\P{InKana1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2867 print "\x{3040}" =~ /\p{InKana2}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2868 print "\x{303F}" =~ /\P{InKana2}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2870 print "\x{3041}" =~ /\p{InKana3}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2871 print "\x{3040}" =~ /\P{InKana3}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2873 print "\x{3040}" =~ /\p{InNotKana}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2874 print "\x{3041}" =~ /\P{InNotKana}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2887 print "d" =~ /\p{InConsonant}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2888 print "e" =~ /\P{InConsonant}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2898 print $r ? "ok $test\n" : "not ok $test\t# <$type x $len> fail\n";
2900 print +(!$r or pos($s) == $len + 1) ? "ok $test\n"
2901 : "not ok $test\t# <$type x $len> pos @{[ pos($s) ]}\n";
2911 "ok $test\t# reblessed qr// matches\n");
2915 "ok $test\t# reblessed qr// stringizes\n");
2922 print(($x =~ $a ? '' : 'not '), "ok $test - utf8 interpolation in qr//\n");
2926 "ok $test - stringifed qr// preserves utf8\n");
2930 "ok $test - interpolated qr// preserves utf8\n");
2934 "ok $test - postponed interpolation of qr// preserves utf8\n");
2938 "ok $test - ## in qr// doesn't corrupt memory [perl #17776]\n");
2944 "ok $test - postponed utf8 string in utf8 re matches utf8\n");
2948 "ok $test - postponed utf8 string in non-utf8 re matches utf8\n");
2952 "ok $test - postponed non-utf8 string in non-utf8 re doesn't match utf8\n");
2956 "ok $test - postponed non-utf8 string in utf8 re doesn't match utf8\n");
2960 "ok $test - postponed non-utf8 string in non-utf8 re matches non-utf8\n");
2964 "ok $test - postponed non-utf8 string in utf8 re matches non-utf8\n");
2969 "ok $test - postponed utf8 string in utf8 re doesn't match non-utf8\n");
2974 "ok $test - postponed utf8 string in non-utf8 re doesn't match non-utf8\n");
2988 print "\x{0712}" =~ /\p{IsSyriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2989 print "\x{072F}" =~ /\P{IsSyriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2998 print "\x{0712}" =~ /\p{Syriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
2999 print "\x{072F}" =~ /\P{Syriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
3005 my $ok = $s =~ /(\x{100}{4})/;
3007 print +($ok && $ord == 0x100 && $len == 4)
3008 ? "ok $test\n" : "not ok $test\t# $ok/$ord/$len\n";
3019 ok($a =~ /^\C/, 'match one \C on 1-byte UTF-8');
3020 ok($a =~ /^\C{1}/, 'match \C{1}');
3022 ok($a =~ /^\Cy/, 'match \Cy');
3023 ok($a =~ /^\C{1}y/, 'match \C{1}y');
3027 ok($a =~ /^\C/, 'match one \C on 2-byte UTF-8');
3028 ok($a =~ /^\C{1}/, 'match \C{1}');
3029 ok($a =~ /^\C\C/, 'match two \C');
3030 ok($a =~ /^\C{2}/, 'match \C{2}');
3032 ok($a =~ /^\C\C\C/, 'match three \C on 2-byte UTF-8 and a byte');
3033 ok($a =~ /^\C{3}/, 'match \C{3}');
3035 ok($a =~ /^\C\Cy/, 'match two \C');
3036 ok($a =~ /^\C{2}y/, 'match \C{2}');
3038 ok($a !~ /^\C\C\Cy/, q{don't match three \Cy});
3039 ok($a !~ /^\C{2}\Cy/, q{don't match \C{3}y});
3043 ok($a =~ /^\C/, 'match one \C on three-byte UTF-8');
3044 ok($a =~ /^\C{1}/, 'match \C{1}');
3045 ok($a =~ /^\C\C/, 'match two \C');
3046 ok($a =~ /^\C{2}/, 'match \C{2}');
3047 ok($a =~ /^\C\C\C/, 'match three \C');
3048 ok($a =~ /^\C{3}/, 'match \C{3}');
3050 ok($a =~ /^\C\C\C\C/, 'match four \C on three-byte UTF-8 and a byte');
3051 ok($a =~ /^\C{4}/, 'match \C{4}');
3053 ok($a =~ /^\C\C\Cy/, 'match three \Cy');
3054 ok($a =~ /^\C{3}y/, 'match \C{3}y');
3056 ok($a !~ /^\C\C\C\C\y/, q{don't match four \Cy});
3057 ok($a !~ /^\C{4}y/, q{don't match \C{4}y});
3062 ok(/[^\s]+/, "m/[^\s]/ utf8");
3063 ok(/[^\d]+/, "m/[^\d]/ utf8");
3064 ok(($a = $_, $_ =~ s/[^\s]+/./g), "s/[^\s]/ utf8");
3065 ok(($a = $_, $a =~ s/[^\d]+/./g), "s/[^\s]/ utf8");
3067 ok("\x{100}" =~ /\x{100}/, "[perl #15397]");
3068 ok("\x{100}" =~ /(\x{100})/, "[perl #15397]");
3069 ok("\x{100}" =~ /(\x{100}){1}/, "[perl #15397]");
3070 ok("\x{100}\x{100}" =~ /(\x{100}){2}/, "[perl #15397]");
3071 ok("\x{100}\x{100}" =~ /(\x{100})(\x{100})/, "[perl #15397]");
3075 ok(!defined $1, "[perl #7471]");
3079 ok(!defined $1, "[perl #7471]");
3082 ok("bac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]");
3083 ok("bbac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]");
3084 ok("bbbac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]");
3085 ok("bbbbac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]");
3090 ok( $1 eq "\x{100}", '$1 is utf-8 [perl #18232]' );
3092 ok( $1 eq "\x{100}", '$1 is still utf-8' );
3093 ok( $1 ne "\xC4\x80", '$1 is not non-utf-8' );
3105 ok( $attr =~ $PredNameHyphen, "[perl #19767] original test" );
3111 ok ( "0" =~ /\p{N}+\z/, "[perl #19767] variant test" );
3120 ok ($p == 5, "[perl #20683] (??{ }) returns stale values");
3126 ok ( $p == 5, "(??{ }) returns stale values");
3137 ok($x eq "\x{2019} k", "Markus Kuhn 2003-02-26");
3140 ok($x eq "b k", "Markus Kuhn 2003-02-26");
3142 ok("\x{2019}" =~ /\S/, "Markus Kuhn 2003-02-26");
3147 ok('-1-3-5-' eq join('', split /((??{$i++}))/, '-1-3-5-'),
3150 ok('a|b|c' eq join ('|', @_),
3156 ok(1,'cache_re & "(?{": it dumps core in 5.6.1 & 5.8.0');
3160 ok("\x{100}\n" =~ /\x{100}\n$/, "UTF8 length cache and fbm_compile");
3170 ok(join(":", /\b(.)\x{100}/g) eq "a:/", "re_intuit_start and PL_bostr");
3176 ok(join(":", @x) eq "'x':'...'",
3183 ok("\x{100}X" =~ /$re/, "S_cl_and ANYOF_UNICODE & ANYOF_INVERTED");
3186 ok(1, 'skip - $* not deprecated in Perl 5.8') for 1..6;
3191 ok("abcde" eq "$`", '# TODO #19049 - global match not setting $`');
3193 ok("123\x{100}" =~ /^.*1.*23\x{100}$/, 'uft8 + multiple floating substr');
3196 ok(" \x{101}" =~ qr/\x{100}/i,
3200 ok(" \x{1E01}" =~ qr/\x{1E00}/i,
3204 ok(" \x{10428}" =~ qr/\x{10400}/i,
3208 ok(" \x{1E01}x" =~ qr/\x{1E00}X/i,
3217 ok($s =~ /\x{a0}/, "[perl #23769]");
3218 ok($s =~ /\x{a0}+/, "[perl #23769]");
3219 ok($s =~ /\x{a0}\x{a0}/, "[perl #23769]");
3221 ok("aaa\x{100}" =~ /(a+)/, "[perl #23769] easy invariant");
3222 ok($1 eq "aaa", "[perl #23769]");
3224 ok("\xa0\xa0\xa0\x{100}" =~ /(\xa0+)/, "[perl #23769] regrepeat invariant");
3225 ok($1 eq "\xa0\xa0\xa0", "[perl #23769]");
3227 ok("ababab\x{100} " =~ /((?:ab)+)/, "[perl #23769] hard invariant");
3228 ok($1 eq "ababab", "[perl #23769]");
3230 ok("\xa0\xa1\xa0\xa1\xa0\xa1\x{100}" =~ /((?:\xa0\xa1)+)/, "[perl #23769] hard variant");
3231 ok($1 eq "\xa0\xa1\xa0\xa1\xa0\xa1", "[perl #23769]");
3233 ok("aaa\x{100} " =~ /(a+?)/, "[perl #23769] easy invariant");
3234 ok($1 eq "a", "[perl #23769]");
3236 ok("\xa0\xa0\xa0\x{100} " =~ /(\xa0+?)/, "[perl #23769] regrepeat variant");
3237 ok($1 eq "\xa0", "[perl #23769]");
3239 ok("ababab\x{100} " =~ /((?:ab)+?)/, "[perl #23769] hard invariant");
3240 ok($1 eq "ab", "[perl #23769]");
3242 ok("\xa0\xa1\xa0\xa1\xa0\xa1\x{100}" =~ /((?:\xa0\xa1)+?)/, "[perl #23769] hard variant");
3243 ok($1 eq "\xa0\xa1", "[perl #23769]");
3245 ok("\xc4\xc4\xc4" !~ /(\x{100}+)/, "[perl #23769] don't match first byte of utf8 representation");
3246 ok("\xc4\xc4\xc4" !~ /(\x{100}+?)/, "[perl #23769] don't match first byte of utf8 representation");
3252 ok(
3264 ok($c=~/${c}|\x{100}/, "ASCII pattern that really is utf8");
3265 ok(@w==0, "No warnings");
3269 ok("a-bc" eq eval {