/[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 566 by ph10, Wed Nov 3 18:32:55 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 8757  No match Line 8787  No match
8787  No match  No match
8788      a\x85b      a\x85b
8789  No match  No match
8790    
8791    /(*ANY).*/g
8792        abc\r\ndef
8793     0: abc
8794     0:
8795     0: def
8796     0:
8797    
8798    /(*ANYCRLF).*/g
8799        abc\r\ndef
8800     0: abc
8801     0:
8802     0: def
8803     0:
8804    
8805    /(*CRLF).*/g
8806        abc\r\ndef
8807     0: abc
8808     0:
8809     0: def
8810     0:
8811    
8812  /a\Rb/I<bsr_anycrlf>  /a\Rb/I<bsr_anycrlf>
8813  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 10429  Partial match: abca Line 10480  Partial match: abca
10480      xxxxabcde\P\P      xxxxabcde\P\P
10481  Partial match: abcde  Partial match: abcde
10482    
10483  /-- 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
10484      and not behaving as specified in that it *does* bumpalong after hitting      broken and not behaving as specified in that it *does* bumpalong after
10485      (*COMMIT). --/      hitting (*COMMIT). --/
10486    
10487  /(?1)(A(*COMMIT)|B)D/  /(?1)(A(*COMMIT)|B)D/
10488      ABD      ABD
# Line 10634  No match Line 10685  No match
10685          End          End
10686  ------------------------------------------------------------------  ------------------------------------------------------------------
10687    
10688  / -- 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
10689       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
10690       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
10691       believe this to be a Perl bug. --/       believe this to be a Perl bug. --/
# Line 10981  No match Line 11032  No match
11032  /^(ab (c+(*FAIL)cd) | xyz)/x  /^(ab (c+(*FAIL)cd) | xyz)/x
11033      abcccd      abcccd
11034  No match  No match
11035    
11036    /--- Perl 5.11 gets some of these wrong ---/
11037    
11038    /(?>.(*ACCEPT))*?5/
11039        abcde
11040     0: a
11041    
11042    /(.(*ACCEPT))*?5/
11043        abcde
11044     0: a
11045     1: a
11046    
11047    /(.(*ACCEPT))5/
11048        abcde
11049     0: a
11050     1: a
11051    
11052    /(.(*ACCEPT))*5/
11053        abcde
11054     0: a
11055     1: a
11056    
11057    /A\NB./BZ
11058    ------------------------------------------------------------------
11059            Bra
11060            A
11061            Any
11062            B
11063            Any
11064            Ket
11065            End
11066    ------------------------------------------------------------------
11067        ACBD
11068     0: ACBD
11069        *** Failers
11070    No match
11071        A\nB
11072    No match
11073        ACB\n
11074    No match
11075    
11076    /A\NB./sBZ
11077    ------------------------------------------------------------------
11078            Bra
11079            A
11080            Any
11081            B
11082            AllAny
11083            Ket
11084            End
11085    ------------------------------------------------------------------
11086        ACBD
11087     0: ACBD
11088        ACB\n
11089     0: ACB\x0a
11090        *** Failers
11091    No match
11092        A\nB
11093    No match
11094    
11095    /A\NB/<crlf>
11096        A\nB
11097     0: A\x0aB
11098        A\rB
11099     0: A\x0dB
11100        ** Failers
11101    No match
11102        A\r\nB
11103    No match
11104    
11105    /\R+b/BZ
11106    ------------------------------------------------------------------
11107            Bra
11108            \R++
11109            b
11110            Ket
11111            End
11112    ------------------------------------------------------------------
11113    
11114    /\R+\n/BZ
11115    ------------------------------------------------------------------
11116            Bra
11117            \R+
11118            \x0a
11119            Ket
11120            End
11121    ------------------------------------------------------------------
11122    
11123    /\R+\d/BZ
11124    ------------------------------------------------------------------
11125            Bra
11126            \R++
11127            \d
11128            Ket
11129            End
11130    ------------------------------------------------------------------
11131    
11132    /\d*\R/BZ
11133    ------------------------------------------------------------------
11134            Bra
11135            \d*+
11136            \R
11137            Ket
11138            End
11139    ------------------------------------------------------------------
11140    
11141    /\s*\R/BZ
11142    ------------------------------------------------------------------
11143            Bra
11144            \s*+
11145            \R
11146            Ket
11147            End
11148    ------------------------------------------------------------------
11149    
11150    /-- Perl treats this one differently, not failing the second string. I believe
11151        that is a bug in Perl. --/
11152    
11153    /^((abc|abcx)(*THEN)y|abcd)/
11154        abcd
11155     0: abcd
11156     1: abcd
11157        *** Failers
11158    No match
11159        abcxy
11160    No match
11161    
11162    /(?<=abc)def/
11163        abc\P\P
11164    Partial match: abc
11165    
11166    /abc$/
11167        abc
11168     0: abc
11169        abc\P
11170     0: abc
11171        abc\P\P
11172    Partial match: abc
11173    
11174    /abc$/m
11175        abc
11176     0: abc
11177        abc\n
11178     0: abc
11179        abc\P\P
11180    Partial match: abc
11181        abc\n\P\P
11182     0: abc
11183        abc\P
11184     0: abc
11185        abc\n\P
11186     0: abc
11187    
11188    /abc\z/
11189        abc
11190     0: abc
11191        abc\P
11192     0: abc
11193        abc\P\P
11194    Partial match: abc
11195    
11196    /abc\Z/
11197        abc
11198     0: abc
11199        abc\P
11200     0: abc
11201        abc\P\P
11202    Partial match: abc
11203    
11204    /abc\b/
11205        abc
11206     0: abc
11207        abc\P
11208     0: abc
11209        abc\P\P
11210    Partial match: abc
11211    
11212    /abc\B/
11213        abc
11214    No match
11215        abc\P
11216    Partial match: abc
11217        abc\P\P
11218    Partial match: abc
11219    
11220  /-- End of testinput2 --/  /-- End of testinput2 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5