/[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 510 by ph10, Sat Mar 27 17:45:29 2010 UTC revision 559 by ph10, Wed Oct 27 09:45:20 2010 UTC
# Line 2  Line 2 
2      of PCRE's API, error diagnostics, and the compiled code of some patterns.      of PCRE's API, error diagnostics, and the compiled code of some patterns.
3      It also checks the non-Perl syntax the PCRE supports (Python, .NET,      It also checks the non-Perl syntax the PCRE supports (Python, .NET,
4      Oniguruma). Finally, there are some tests where PCRE and Perl differ,      Oniguruma). Finally, there are some tests where PCRE and Perl differ,
5      either because PCRE can't be compatible, or there is potential Perl      either because PCRE can't be compatible, or there is a possible Perl
6      bug. --/      bug. --/
7    
8  /-- Originally, the Perl 5.10 things were in here too, but now I have separated  /-- Originally, the Perl >= 5.10 things were in here too, but now I have
9      many (most?) of them out into test 11. However, there may still be some      separated many (most?) of them out into test 11. However, there may still
10      that were overlooked. --/      be some that were overlooked. --/
11    
12  /(a)b|/I  /(a)b|/I
13  Capturing subpattern count = 1  Capturing subpattern count = 1
# Line 103  Failed: missing terminating ] for charac Line 103  Failed: missing terminating ] for charac
103  /(?X)[\B]/  /(?X)[\B]/
104  Failed: invalid escape sequence in character class at offset 6  Failed: invalid escape sequence in character class at offset 6
105    
106    /(?X)[\R]/
107    Failed: invalid escape sequence in character class at offset 6
108    
109    /(?X)[\X]/
110    Failed: invalid escape sequence in character class at offset 6
111    
112    /[\B]/BZ
113    ------------------------------------------------------------------
114            Bra
115            B
116            Ket
117            End
118    ------------------------------------------------------------------
119    
120    /[\R]/BZ
121    ------------------------------------------------------------------
122            Bra
123            R
124            Ket
125            End
126    ------------------------------------------------------------------
127    
128    /[\X]/BZ
129    ------------------------------------------------------------------
130            Bra
131            X
132            Ket
133            End
134    ------------------------------------------------------------------
135    
136  /[z-a]/  /[z-a]/
137  Failed: range out of order in character class at offset 3  Failed: range out of order in character class at offset 3
138    
# Line 3198  Failed: POSIX collating elements are not Line 3228  Failed: POSIX collating elements are not
3228  Failed: POSIX named classes are supported only within a class at offset 0  Failed: POSIX named classes are supported only within a class at offset 0
3229    
3230  /\l/I  /\l/I
3231  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3232    
3233  /\L/I  /\L/I
3234  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3235    
3236  /\N{name}/I  /\N{name}/I
3237  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3238    
3239  /\u/I  /\u/I
3240  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3241    
3242  /\U/I  /\U/I
3243  Failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1  Failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1
3244    
3245  /[/I  /[/I
3246  Failed: missing terminating ] for character class at offset 1  Failed: missing terminating ] for character class at offset 1
# Line 10429  Partial match: abca Line 10459  Partial match: abca
10459      xxxxabcde\P\P      xxxxabcde\P\P
10460  Partial match: abcde  Partial match: abcde
10461    
10462  /-- This is not in the Perl 5.10 test because Perl seems currently to be broken  /-- This is not in the Perl >= 5.10 test because Perl seems currently to be
10463      and not behaving as specified in that it *does* bumpalong after hitting      broken and not behaving as specified in that it *does* bumpalong after
10464      (*COMMIT). --/      hitting (*COMMIT). --/
10465    
10466  /(?1)(A(*COMMIT)|B)D/  /(?1)(A(*COMMIT)|B)D/
10467      ABD      ABD
# Line 10634  No match Line 10664  No match
10664          End          End
10665  ------------------------------------------------------------------  ------------------------------------------------------------------
10666    
10667  / -- The first four of these are not in the Perl 5.10 test because Perl  / -- The first four of these are not in the Perl >= 5.10 test because Perl
10668       documents that the use of \K in assertions is "not well defined". The       documents that the use of \K in assertions is "not well defined". The
10669       last is here because Perl gives the match as "b" rather than "ab". I       last is here because Perl gives the match as "b" rather than "ab". I
10670       believe this to be a Perl bug. --/       believe this to be a Perl bug. --/
# Line 10981  No match Line 11011  No match
11011  /^(ab (c+(*FAIL)cd) | xyz)/x  /^(ab (c+(*FAIL)cd) | xyz)/x
11012      abcccd      abcccd
11013  No match  No match
11014    
11015    /--- Perl 5.11 gets some of these wrong ---/
11016    
11017    /(?>.(*ACCEPT))*?5/
11018        abcde
11019     0: a
11020    
11021    /(.(*ACCEPT))*?5/
11022        abcde
11023     0: a
11024     1: a
11025    
11026    /(.(*ACCEPT))5/
11027        abcde
11028     0: a
11029     1: a
11030    
11031    /(.(*ACCEPT))*5/
11032        abcde
11033     0: a
11034     1: a
11035    
11036    /A\NB./BZ
11037    ------------------------------------------------------------------
11038            Bra
11039            A
11040            Any
11041            B
11042            Any
11043            Ket
11044            End
11045    ------------------------------------------------------------------
11046        ACBD
11047     0: ACBD
11048        *** Failers
11049    No match
11050        A\nB
11051    No match
11052        ACB\n
11053    No match
11054    
11055    /A\NB./sBZ
11056    ------------------------------------------------------------------
11057            Bra
11058            A
11059            Any
11060            B
11061            AllAny
11062            Ket
11063            End
11064    ------------------------------------------------------------------
11065        ACBD
11066     0: ACBD
11067        ACB\n
11068     0: ACB\x0a
11069        *** Failers
11070    No match
11071        A\nB
11072    No match
11073    
11074    /A\NB/<crlf>
11075        A\nB
11076     0: A\x0aB
11077        A\rB
11078     0: A\x0dB
11079        ** Failers
11080    No match
11081        A\r\nB
11082    No match
11083    
11084    /\R+b/BZ
11085    ------------------------------------------------------------------
11086            Bra
11087            \R++
11088            b
11089            Ket
11090            End
11091    ------------------------------------------------------------------
11092    
11093    /\R+\n/BZ
11094    ------------------------------------------------------------------
11095            Bra
11096            \R+
11097            \x0a
11098            Ket
11099            End
11100    ------------------------------------------------------------------
11101    
11102    /\R+\d/BZ
11103    ------------------------------------------------------------------
11104            Bra
11105            \R++
11106            \d
11107            Ket
11108            End
11109    ------------------------------------------------------------------
11110    
11111    /\d*\R/BZ
11112    ------------------------------------------------------------------
11113            Bra
11114            \d*+
11115            \R
11116            Ket
11117            End
11118    ------------------------------------------------------------------
11119    
11120    /\s*\R/BZ
11121    ------------------------------------------------------------------
11122            Bra
11123            \s*+
11124            \R
11125            Ket
11126            End
11127    ------------------------------------------------------------------
11128    
11129    /-- Perl treats this one differently, not failing the second string. I believe
11130        that is a bug in Perl. --/
11131    
11132    /^((abc|abcx)(*THEN)y|abcd)/
11133        abcd
11134     0: abcd
11135     1: abcd
11136        *** Failers
11137    No match
11138        abcxy
11139    No match
11140    
11141    /(?<=abc)def/
11142        abc\P\P
11143    Partial match: abc
11144    
11145    /abc$/
11146        abc
11147     0: abc
11148        abc\P
11149     0: abc
11150        abc\P\P
11151    Partial match: abc
11152    
11153    /abc$/m
11154        abc
11155     0: abc
11156        abc\n
11157     0: abc
11158        abc\P\P
11159    Partial match: abc
11160        abc\n\P\P
11161     0: abc
11162        abc\P
11163     0: abc
11164        abc\n\P
11165     0: abc
11166    
11167    /abc\z/
11168        abc
11169     0: abc
11170        abc\P
11171     0: abc
11172        abc\P\P
11173    Partial match: abc
11174    
11175    /abc\Z/
11176        abc
11177     0: abc
11178        abc\P
11179     0: abc
11180        abc\P\P
11181    Partial match: abc
11182    
11183    /abc\b/
11184        abc
11185     0: abc
11186        abc\P
11187     0: abc
11188        abc\P\P
11189    Partial match: abc
11190    
11191    /abc\B/
11192        abc
11193    No match
11194        abc\P
11195    Partial match: abc
11196        abc\P\P
11197    Partial match: abc
11198    
11199  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.510  
changed lines
  Added in v.559

  ViewVC Help
Powered by ViewVC 1.1.5