/[pcre]/code/trunk/testdata/testoutput2
ViewVC logotype

Diff of /code/trunk/testdata/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1298 by ph10, Fri Mar 22 16:13:13 2013 UTC revision 1299 by ph10, Fri Mar 22 17:23:09 2013 UTC
# Line 824  No match Line 824  No match
824      fooabar      fooabar
825  No match  No match
826    
 /This one is here because Perl 5.005_02 doesn't fail it/I  
 Capturing subpattern count = 0  
 No options  
 First char = 'T'  
 Need char = 't'  
   
 /^(a)?(?(1)a|b)+$/I  
 Capturing subpattern count = 1  
 Options: anchored  
 No first char  
 No need char  
     *** Failers  
 No match  
     a  
 No match  
   
827  /This one is here because Perl behaves differently; see also the following/I  /This one is here because Perl behaves differently; see also the following/I
828  Capturing subpattern count = 0  Capturing subpattern count = 0
829  No options  No options
# Line 10357  Partial match: abca Line 10341  Partial match: abca
10341      xxxxabcde\P\P      xxxxabcde\P\P
10342  Partial match: abcde  Partial match: abcde
10343    
10344  /-- This is not in the Perl >= 5.10 test because Perl seems currently to be  /-- This is not in the Perl-compatible test because Perl seems currently to be
10345      broken and not behaving as specified in that it *does* bumpalong after      broken and not behaving as specified in that it *does* bumpalong after
10346      hitting (*COMMIT). --/      hitting (*COMMIT). --/
10347    
# Line 10553  No match Line 10537  No match
10537          End          End
10538  ------------------------------------------------------------------  ------------------------------------------------------------------
10539    
10540  / -- The first four of these are not in the Perl >= 5.10 test because Perl  / -- This one is here because Perl gives the match as "b" rather than "ab". I
      documents that the use of \K in assertions is "not well defined". The  
      last is here because Perl gives the match as "b" rather than "ab". I  
10541       believe this to be a Perl bug. --/       believe this to be a Perl bug. --/
10542    
 /(?=a\Kb)ab/  
     ab  
  0: b  
   
 /(?!a\Kb)ac/  
     ac  
  0: ac  
   
 /^abc(?<=b\Kc)d/  
     abcd  
  0: cd  
   
 /^abc(?<!b\Kq)d/  
     abcd  
  0: abcd  
   
10543  /(?>a\Kb)z|(ab)/  /(?>a\Kb)z|(ab)/
10544      ab      ab
10545   0: ab   0: ab
10546   1: ab   1: ab
10547    
 /----------------------/  
   
10548  /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/  /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
10549  Failed: recursive call could loop indefinitely at offset 31  Failed: recursive call could loop indefinitely at offset 31
10550    
# Line 10600  Failed: an argument is not allowed for ( Line 10564  Failed: an argument is not allowed for (
10564      ACABX      ACABX
10565  No match  No match
10566    
10567  /--- These should be different, but in Perl 5.11 are not, which I think  /--- These should be different, but in Perl they are not, which I think
10568       is a bug in Perl. ---/       is a bug in Perl. ---/
10569    
10570  /A(*THEN)B|A(*THEN)C/K  /A(*THEN)B|A(*THEN)C/K
# Line 10611  No match Line 10575  No match
10575      AC      AC
10576  No match  No match
10577    
 /--- This should fail; the SKIP advances by one, but when we get to AC, the  
      PRUNE kills it. Perl behaves differently. ---/  
   
 /A(*PRUNE:A)A+(*SKIP:A)(B|Z) | AC/xK  
     AAAC  
 No match, mark = A  
   
10578  /--- Mark names can be duplicated. Perl doesn't give a mark for this one,  /--- Mark names can be duplicated. Perl doesn't give a mark for this one,
10579  though PCRE does. ---/  though PCRE does. ---/
10580    
# Line 10651  No match Line 10608  No match
10608      abcccd      abcccd
10609  No match  No match
10610    
10611  /--- Perl 5.11 gets some of these wrong ---/  /--- Perl gets some of these wrong ---/
10612    
10613  /(?>.(*ACCEPT))*?5/  /(?>.(*ACCEPT))*?5/
10614      abcde      abcde
# Line 10830  No match Line 10787  No match
10787      X\x0d\x0a      X\x0d\x0a
10788  No match  No match
10789    
 /-- Perl treats this one differently, not failing the second string. I believe  
     that is a bug in Perl. --/  
   
 /^((abc|abcx)(*THEN)y|abcd)/  
     abcd  
  0: abcd  
  1: abcd  
     *** Failers  
 No match  
     abcxy  
 No match  
   
10790  /(?<=abc)def/  /(?<=abc)def/
10791      abc\P\P      abc\P\P
10792  Partial match at offset 3: abc  Partial match at offset 3: abc
# Line 11765  Minimum match() limit = 86 Line 11710  Minimum match() limit = 86
11710  Minimum match() recursion limit = 45  Minimum match() recursion limit = 45
11711   0: abbbbbbbbbbbbbbbbbbbbba   0: abbbbbbbbbbbbbbbbbbbbba
11712    
 /-- These tests are in agreement with development Perl 5.015, which has fixed  
     some things, but they don't all work with 5.012, so they aren't in the  
     Perl-compatible tests. Those after the first come from Perl's own test  
     files. --/  
   
 /^((yes|no)(*THEN)(*F))?/  
   yes  
 No match  
   
 /(A (.*)   C? (*THEN)  | A D) (*FAIL)/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   C? (*THEN)  | A D) z/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   C? (*THEN)  | A D) \s* (*FAIL)/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   C? (*THEN)  | A D) \s* z/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   (?:C|) (*THEN)  | A D) (*FAIL)/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   (?:C|) (*THEN)  | A D) z/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   C{0,6} (*THEN)  | A D) (*FAIL)/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   C{0,6} (*THEN)  | A D) z/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   (CE){0,6} (*THEN)  | A D) (*FAIL)/x  
 AbcdCEBefgBhiBqz  
 No match  
   
 /(A (.*)   (CE){0,6} (*THEN)  | A D) z/x  
 AbcdCEBefgBhiBqz  
 No match  
   
 /(A (.*)   (CE*){0,6} (*THEN)  | A D) (*FAIL)/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /(A (.*)   (CE*){0,6} (*THEN)  | A D) z/x  
 AbcdCBefgBhiBqz  
 No match  
   
 /-----------------------------------------------/  
   
11713  /^(?>a+)(?>(z+))\w/BZ  /^(?>a+)(?>(z+))\w/BZ
11714  ------------------------------------------------------------------  ------------------------------------------------------------------
11715          Bra          Bra
# Line 12340  Partial match: \x0d\x0d Line 12226  Partial match: \x0d\x0d
12226      \r\r\r\P\P      \r\r\r\P\P
12227   0: \x0d\x0d   0: \x0d\x0d
12228    
 /-- These two are here because Perl does not match: it seems to allow the  
 COMMIT to escape from the assertion. --/  
   
 /(?=a(*COMMIT)b|ac)ac|ac/  
     ac  
 No match  
   
 /(?=a(*COMMIT)b|(ac)) ac | (a)c/x  
     ac  
 No match  
   
12229  "AB(C(D))(E(F))?(?(?=\2)(?=\4))"  "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
12230      ABCDGHI\O03      ABCDGHI\O03
12231  Matched, but too many substrings  Matched, but too many substrings
12232   0: ABCD   0: ABCD
12233    
 /-- This one is here because Perl does not confine the *COMMIT to the  
 assertion, and therefore fails the entire subroutine call. --/  
   
 /((?=a(*COMMIT)b)ab|ac){0}(?:(?1)|a(c))/  
     ac  
  0: ac  
  1: <unset>  
  2: c  
   
12234  /-- These are all run as real matches in test 1; here we are just checking the  /-- These are all run as real matches in test 1; here we are just checking the
12235  settings of the anchored and startline bits. --/  settings of the anchored and startline bits. --/
12236    
# Line 12731  No match Line 12597  No match
12597   0: AD   0: AD
12598   1: AD   1: AD
12599    
12600  /-- End of Perl diffences --/  /-------------------------/
12601    
12602  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.1298  
changed lines
  Added in v.1299

  ViewVC Help
Powered by ViewVC 1.1.5