/[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 511 by ph10, Mon Mar 29 09:25:38 2010 UTC revision 550 by ph10, Sun Oct 10 16:24:11 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 and 5.11 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 11003  No match Line 11033  No match
11033   0: a   0: a
11034   1: a   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  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.511  
changed lines
  Added in v.550

  ViewVC Help
Powered by ViewVC 1.1.5