Home | History | Annotate | Download | only in regex
      1 # Copyright 2013 the V8 project authors. All rights reserved.
      2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
      3 #
      4 # Redistribution and use in source and binary forms, with or without
      5 # modification, are permitted provided that the following conditions
      6 # are met:
      7 # 1.  Redistributions of source code must retain the above copyright
      8 #     notice, this list of conditions and the following disclaimer.
      9 # 2.  Redistributions in binary form must reproduce the above copyright
     10 #     notice, this list of conditions and the following disclaimer in the
     11 #     documentation and/or other materials provided with the distribution.
     12 #
     13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
     14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
     17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
     20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     23 
     24 A chunk of our port of PCRE's test suite, adapted to be more applicable to JavaScript.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS regex0.exec(input0); is results
     30 PASS regex0.exec(input1); is results
     31 PASS regex0.exec(input2); is results
     32 PASS regex0.exec(input3); is results
     33 PASS regex1.exec(input0); is results
     34 PASS regex1.exec(input1); is results
     35 PASS regex1.exec(input2); is results
     36 PASS regex1.exec(input3); is results
     37 PASS regex1.exec(input4); is results
     38 PASS regex2.exec(input0); is results
     39 PASS regex3.exec(input0); is results
     40 PASS regex4.exec(input0); is results
     41 PASS regex5.exec(input0); is results
     42 PASS regex6.exec(input0); is results
     43 PASS regex7.exec(input0); is results
     44 PASS regex8.exec(input0); is results
     45 PASS regex9.exec(input0); is results
     46 PASS regex10.exec(input0); is results
     47 PASS regex11.exec(input0); is results
     48 PASS regex12.exec(input0); is results
     49 PASS regex12.exec(input1); is results
     50 PASS regex12.exec(input2); is results
     51 PASS regex12.exec(input3); is results
     52 PASS regex12.exec(input4); is results
     53 PASS regex13.exec(input0); is results
     54 PASS regex13.exec(input1); is results
     55 PASS regex13.exec(input2); is results
     56 PASS regex13.exec(input3); is results
     57 PASS regex13.exec(input4); is results
     58 PASS regex13.exec(input5); is results
     59 PASS regex14.exec(input0); is results
     60 PASS regex14.exec(input1); is results
     61 PASS regex14.exec(input2); is results
     62 PASS regex14.exec(input3); is results
     63 PASS regex14.exec(input4); is results
     64 PASS regex14.exec(input5); is results
     65 PASS regex15.exec(input0); is results
     66 PASS regex15.exec(input1); is results
     67 PASS regex15.exec(input2); is results
     68 PASS regex15.exec(input3); is results
     69 PASS regex15.exec(input4); is results
     70 PASS regex15.exec(input5); is results
     71 PASS regex15.exec(input6); is results
     72 PASS regex15.exec(input7); is results
     73 PASS regex15.exec(input8); is results
     74 PASS regex16.exec(input0); is results
     75 PASS regex16.exec(input1); is results
     76 PASS regex16.exec(input2); is results
     77 PASS regex16.exec(input3); is results
     78 PASS regex16.exec(input4); is results
     79 PASS regex16.exec(input5); is results
     80 PASS regex16.exec(input6); is results
     81 PASS regex16.exec(input7); is results
     82 PASS regex16.exec(input8); is results
     83 PASS regex17.exec(input0); is results
     84 PASS regex21.exec(input0); is results
     85 PASS regex21.exec(input1); is results
     86 PASS regex22.exec(input0); is results
     87 PASS regex22.exec(input1); is results
     88 PASS regex22.exec(input2); is results
     89 PASS regex30.exec(input0); is results
     90 PASS regex31.exec(input0); is results
     91 PASS regex32.exec(input0); is results
     92 PASS regex33.exec(input0); is results
     93 PASS regex34.exec(input0); is results
     94 PASS regex35.exec(input0); is results
     95 PASS regex36.exec(input0); is results
     96 PASS regex37.exec(input0); is results
     97 PASS regex37.exec(input1); is results
     98 PASS regex38.exec(input0); is results
     99 PASS regex38.exec(input1); is results
    100 PASS regex39.exec(input0); is results
    101 PASS regex39.exec(input1); is results
    102 PASS regex40.exec(input0); is results
    103 PASS regex41.exec(input0); is results
    104 PASS regex42.exec(input0); is results
    105 PASS regex43.exec(input0); is results
    106 PASS regex44.exec(input0); is results
    107 PASS regex45.exec(input0); is results
    108 PASS regex47.exec(input0); is results
    109 PASS regex48.exec(input0); is results
    110 PASS regex49.exec(input0); is results
    111 PASS regex49.exec(input1); is results
    112 PASS regex50.exec(input0); is results
    113 PASS regex50.exec(input1); is results
    114 PASS regex51.exec(input0); is results
    115 PASS regex52.exec(input0); is results
    116 PASS regex53.exec(input0); is results
    117 PASS regex53.exec(input1); is results
    118 PASS regex54.exec(input0); is results
    119 PASS regex54.exec(input1); is results
    120 PASS regex54.exec(input2); is results
    121 PASS regex54.exec(input3); is results
    122 PASS regex55.exec(input0); is results
    123 PASS regex55.exec(input1); is results
    124 PASS regex55.exec(input2); is results
    125 PASS regex55.exec(input3); is results
    126 PASS regex56.exec(input0); is results
    127 PASS regex57.exec(input0); is results
    128 PASS regex57.exec(input1); is results
    129 PASS regex57.exec(input2); is results
    130 PASS regex58.exec(input0); is results
    131 PASS regex58.exec(input1); is results
    132 PASS regex58.exec(input2); is results
    133 PASS regex59.exec(input0); is results
    134 PASS regex59.exec(input1); is results
    135 PASS regex60.exec(input0); is results
    136 PASS regex60.exec(input1); is results
    137 PASS regex60.exec(input2); is results
    138 PASS regex61.exec(input0); is results
    139 PASS regex61.exec(input1); is results
    140 PASS regex61.exec(input2); is results
    141 PASS regex62.exec(input0); is results
    142 PASS regex63.exec(input0); is results
    143 PASS regex63.exec(input1); is results
    144 PASS regex63.exec(input2); is results
    145 PASS regex64.exec(input0); is results
    146 PASS regex64.exec(input1); is results
    147 PASS regex64.exec(input2); is results
    148 PASS regex65.exec(input0); is results
    149 PASS regex65.exec(input1); is results
    150 PASS regex66.exec(input0); is results
    151 PASS regex66.exec(input1); is results
    152 PASS regex66.exec(input2); is results
    153 PASS regex67.exec(input0); is results
    154 PASS regex67.exec(input1); is results
    155 PASS regex67.exec(input2); is results
    156 PASS regex68.exec(input0); is results
    157 PASS regex68.exec(input1); is results
    158 PASS regex69.exec(input0); is results
    159 PASS regex69.exec(input1); is results
    160 PASS regex69.exec(input2); is results
    161 PASS regex70.exec(input0); is results
    162 PASS regex70.exec(input1); is results
    163 PASS regex70.exec(input2); is results
    164 PASS regex71.exec(input0); is results
    165 PASS regex71.exec(input1); is results
    166 PASS regex71.exec(input2); is results
    167 PASS regex72.exec(input0); is results
    168 PASS regex72.exec(input1); is results
    169 PASS regex72.exec(input2); is results
    170 PASS regex73.exec(input0); is results
    171 PASS regex73.exec(input1); is results
    172 PASS regex74.exec(input0); is results
    173 PASS regex74.exec(input1); is results
    174 PASS regex74.exec(input2); is results
    175 PASS regex75.exec(input0); is results
    176 PASS regex75.exec(input1); is results
    177 PASS regex75.exec(input2); is results
    178 PASS regex75.exec(input3); is results
    179 PASS regex75.exec(input4); is results
    180 PASS regex76.exec(input0); is results
    181 PASS regex76.exec(input1); is results
    182 PASS regex76.exec(input2); is results
    183 PASS regex77.exec(input0); is results
    184 PASS regex77.exec(input1); is results
    185 PASS regex77.exec(input2); is results
    186 PASS regex77.exec(input3); is results
    187 PASS regex78.exec(input0); is results
    188 PASS regex78.exec(input1); is results
    189 PASS regex78.exec(input2); is results
    190 PASS regex78.exec(input3); is results
    191 PASS regex78.exec(input4); is results
    192 PASS regex78.exec(input5); is results
    193 PASS regex79.exec(input0); is results
    194 PASS regex79.exec(input1); is results
    195 PASS regex79.exec(input2); is results
    196 PASS regex80.exec(input0); is results
    197 PASS regex80.exec(input1); is results
    198 PASS regex80.exec(input2); is results
    199 PASS regex81.exec(input0); is results
    200 PASS regex81.exec(input1); is results
    201 PASS regex81.exec(input2); is results
    202 PASS regex82.exec(input0); is results
    203 PASS regex82.exec(input1); is results
    204 PASS regex82.exec(input2); is results
    205 PASS regex86.exec(input0); is results
    206 PASS regex86.exec(input1); is results
    207 PASS regex86.exec(input2); is results
    208 PASS regex86.exec(input3); is results
    209 PASS regex86.exec(input4); is results
    210 PASS regex87.exec(input0); is results
    211 PASS regex87.exec(input1); is results
    212 PASS regex87.exec(input2); is results
    213 PASS regex87.exec(input3); is results
    214 PASS regex87.exec(input4); is results
    215 PASS regex87.exec(input5); is results
    216 PASS regex88.exec(input0); is results
    217 PASS regex88.exec(input1); is results
    218 PASS regex88.exec(input2); is results
    219 PASS regex88.exec(input3); is results
    220 PASS regex88.exec(input4); is results
    221 PASS regex91.exec(input0); is results
    222 PASS regex91.exec(input1); is results
    223 PASS regex91.exec(input2); is results
    224 PASS regex91.exec(input3); is results
    225 PASS regex91.exec(input4); is results
    226 PASS regex92.exec(input0); is results
    227 PASS regex93.exec(input0); is results
    228 PASS regex94.exec(input0); is results
    229 PASS regex95.exec(input0); is results
    230 PASS regex95.exec(input1); is results
    231 PASS regex96.exec(input0); is results
    232 PASS regex97.exec(input0); is results
    233 PASS regex98.exec(input0); is results
    234 PASS regex99.exec(input0); is results
    235 PASS regex100.exec(input0); is results
    236 PASS regex102.exec(input0); is results
    237 PASS regex103.exec(input0); is results
    238 PASS regex104.exec(input0); is results
    239 PASS regex105.exec(input0); is results
    240 PASS regex105.exec(input1); is results
    241 PASS regex106.exec(input0); is results
    242 PASS regex107.exec(input0); is results
    243 PASS input0.match(regexGlobal0); is results
    244 PASS input1.match(regexGlobal0); is results
    245 PASS input0.match(regexGlobal1); is results
    246 PASS input0.match(regexGlobal2); is results
    247 PASS input0.match(regexGlobal3); is results
    248 PASS input0.match(regexGlobal4); is results
    249 PASS input0.match(regexGlobal5); is results
    250 PASS input0.match(regexGlobal6); is results
    251 PASS input0.match(regexGlobal7); is results
    252 PASS input0.match(regexGlobal8); is results
    253 PASS input0.match(regexGlobal9); is results
    254 PASS input0.match(regexGlobal10); is results
    255 PASS input0.match(regexGlobal11); is results
    256 PASS input0.match(regexGlobal12); is results
    257 PASS input0.match(regexGlobal13); is results
    258 PASS input0.match(regexGlobal14); is results
    259 PASS input0.match(regexGlobal15); is results
    260 PASS input0.match(regexGlobal16); is results
    261 PASS input0.match(regexGlobal17); is results
    262 PASS input0.match(regexGlobal19); is results
    263 PASS input0.match(regexGlobal21); is results
    264 PASS input0.match(regexGlobal24); is results
    265 PASS input0.match(regexGlobal25); is results
    266 PASS input0.match(regexGlobal26); is results
    267 PASS input0.match(regexGlobal27); is results
    268 PASS input0.match(regexGlobal28); is results
    269 PASS input1.match(regexGlobal28); is results
    270 PASS input0.match(regexGlobal29); is results
    271 PASS input1.match(regexGlobal29); is results
    272 PASS successfullyParsed is true
    273 
    274 TEST COMPLETE
    275 
    276