/[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 578 by ph10, Tue Nov 23 15:34: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 9243  No match Line 9294  No match
9294   +0        ^     x   +0        ^     x
9295   +0         ^    x   +0         ^    x
9296  No match  No match
9297    
9298    /(*NO_START_OPT)xyz/C
9299      abcxyz
9300    --->abcxyz
9301    +15 ^          x
9302    +15  ^         x
9303    +15   ^        x
9304    +15    ^       x
9305    +16    ^^      y
9306    +17    ^ ^     z
9307    +18    ^  ^
9308     0: xyz
9309    
9310    /xyz/CY
9311      abcxyz
9312    --->abcxyz
9313     +0 ^          x
9314     +0  ^         x
9315     +0   ^        x
9316     +0    ^       x
9317     +1    ^^      y
9318     +2    ^ ^     z
9319     +3    ^  ^
9320     0: xyz
9321    
9322  /^"((?(?=[a])[^"])|b)*"$/C  /^"((?(?=[a])[^"])|b)*"$/C
9323      "ab"      "ab"
# Line 10429  Partial match: abca Line 10504  Partial match: abca
10504      xxxxabcde\P\P      xxxxabcde\P\P
10505  Partial match: abcde  Partial match: abcde
10506    
10507  /-- 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
10508      and not behaving as specified in that it *does* bumpalong after hitting      broken and not behaving as specified in that it *does* bumpalong after
10509      (*COMMIT). --/      hitting (*COMMIT). --/
10510    
10511  /(?1)(A(*COMMIT)|B)D/  /(?1)(A(*COMMIT)|B)D/
10512      ABD      ABD
# Line 10634  No match Line 10709  No match
10709          End          End
10710  ------------------------------------------------------------------  ------------------------------------------------------------------
10711    
10712  / -- 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
10713       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
10714       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
10715       believe this to be a Perl bug. --/       believe this to be a Perl bug. --/
# Line 11003  No match Line 11078  No match
11078   0: a   0: a
11079   1: a   1: a
11080    
11081    /A\NB./BZ
11082    ------------------------------------------------------------------
11083            Bra
11084            A
11085            Any
11086            B
11087            Any
11088            Ket
11089            End
11090    ------------------------------------------------------------------
11091        ACBD
11092     0: ACBD
11093        *** Failers
11094    No match
11095        A\nB
11096    No match
11097        ACB\n
11098    No match
11099    
11100    /A\NB./sBZ
11101    ------------------------------------------------------------------
11102            Bra
11103            A
11104            Any
11105            B
11106            AllAny
11107            Ket
11108            End
11109    ------------------------------------------------------------------
11110        ACBD
11111     0: ACBD
11112        ACB\n
11113     0: ACB\x0a
11114        *** Failers
11115    No match
11116        A\nB
11117    No match
11118    
11119    /A\NB/<crlf>
11120        A\nB
11121     0: A\x0aB
11122        A\rB
11123     0: A\x0dB
11124        ** Failers
11125    No match
11126        A\r\nB
11127    No match
11128    
11129    /\R+b/BZ
11130    ------------------------------------------------------------------
11131            Bra
11132            \R++
11133            b
11134            Ket
11135            End
11136    ------------------------------------------------------------------
11137    
11138    /\R+\n/BZ
11139    ------------------------------------------------------------------
11140            Bra
11141            \R+
11142            \x0a
11143            Ket
11144            End
11145    ------------------------------------------------------------------
11146    
11147    /\R+\d/BZ
11148    ------------------------------------------------------------------
11149            Bra
11150            \R++
11151            \d
11152            Ket
11153            End
11154    ------------------------------------------------------------------
11155    
11156    /\d*\R/BZ
11157    ------------------------------------------------------------------
11158            Bra
11159            \d*+
11160            \R
11161            Ket
11162            End
11163    ------------------------------------------------------------------
11164    
11165    /\s*\R/BZ
11166    ------------------------------------------------------------------
11167            Bra
11168            \s*+
11169            \R
11170            Ket
11171            End
11172    ------------------------------------------------------------------
11173    
11174    /-- Perl treats this one differently, not failing the second string. I believe
11175        that is a bug in Perl. --/
11176    
11177    /^((abc|abcx)(*THEN)y|abcd)/
11178        abcd
11179     0: abcd
11180     1: abcd
11181        *** Failers
11182    No match
11183        abcxy
11184    No match
11185    
11186    /(?<=abc)def/
11187        abc\P\P
11188    Partial match: abc
11189    
11190    /abc$/
11191        abc
11192     0: abc
11193        abc\P
11194     0: abc
11195        abc\P\P
11196    Partial match: abc
11197    
11198    /abc$/m
11199        abc
11200     0: abc
11201        abc\n
11202     0: abc
11203        abc\P\P
11204    Partial match: abc
11205        abc\n\P\P
11206     0: abc
11207        abc\P
11208     0: abc
11209        abc\n\P
11210     0: abc
11211    
11212    /abc\z/
11213        abc
11214     0: abc
11215        abc\P
11216     0: abc
11217        abc\P\P
11218    Partial match: abc
11219    
11220    /abc\Z/
11221        abc
11222     0: abc
11223        abc\P
11224     0: abc
11225        abc\P\P
11226    Partial match: abc
11227    
11228    /abc\b/
11229        abc
11230     0: abc
11231        abc\P
11232     0: abc
11233        abc\P\P
11234    Partial match: abc
11235    
11236    /abc\B/
11237        abc
11238    No match
11239        abc\P
11240    Partial match: abc
11241        abc\P\P
11242    Partial match: abc
11243    
11244    /.+/
11245        abc\>0
11246     0: abc
11247        abc\>1
11248     0: bc
11249        abc\>2
11250     0: c
11251        abc\>3
11252    No match
11253        abc\>4
11254    Error -24
11255        abc\>-4
11256    Error -24
11257    
11258    /^\cģ/
11259    Failed: \c must be followed by an ASCII character at offset 3
11260    
11261    /(?P<abn>(?P=abn)xxx)/BZ
11262    ------------------------------------------------------------------
11263            Bra
11264            Once
11265            CBra 1
11266            \1
11267            xxx
11268            Ket
11269            Ket
11270            Ket
11271            End
11272    ------------------------------------------------------------------
11273    
11274    /(a\1z)/BZ
11275    ------------------------------------------------------------------
11276            Bra
11277            Once
11278            CBra 1
11279            a
11280            \1
11281            z
11282            Ket
11283            Ket
11284            Ket
11285            End
11286    ------------------------------------------------------------------
11287    
11288    /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
11289    Failed: syntax error in subpattern name (missing terminator) at offset 29
11290    
11291    /(?P<abn>(?P=axn)xxx)/BZ
11292    Failed: reference to non-existent subpattern at offset 15
11293    
11294    /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
11295    ------------------------------------------------------------------
11296            Bra
11297            CBra 1
11298            \2
11299            xxx
11300            Ket
11301            CBra 2
11302            yy
11303            Ket
11304            Ket
11305            End
11306    ------------------------------------------------------------------
11307    
11308  /-- End of testinput2 --/  /-- End of testinput2 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5