/[pcre]/code/branches/pcre16/testdata/testoutput14
ViewVC logotype

Diff of /code/branches/pcre16/testdata/testoutput14

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

revision 813 by ph10, Mon Dec 12 16:23:37 2011 UTC revision 814 by ph10, Wed Dec 21 12:05:24 2011 UTC
# Line 1  Line 1 
1  /-- This test is run only when JIT support is available. It checks for a  /-- This set of tests is run only with the 8-bit library. It starts with all
2  successful and an unsuccessful JIT compile and save and restore behaviour,      the tests of the POSIX interface, because that is supported only with the
3  and a couple of things that are different with JIT. --/      8-bit library. --/
4    
5  /abc/S+I  /abc/P
6  Capturing subpattern count = 0      abc
7  No options   0: abc
8  First char = 'a'      *** Failers
9  Need char = 'c'  No match: POSIX code 17: match failed
10  Subject length lower bound = 3  
11  No set of starting bytes  /^abc|def/P
12  JIT study was successful      abcdef
13     0: abc
14  /ab(*COMMIT)/S+I      abcdef\B
15  Capturing subpattern count = 0   0: def
16  No options  
17  First char = 'a'  /.*((abc)$|(def))/P
18  Need char = 'b'      defabc
19  Subject length lower bound = 2   0: defabc
20  No set of starting bytes   1: abc
21  JIT study was not successful   2: abc
22        \Zdefabc
23  /abc/S+I>testsavedregex   0: def
24  Capturing subpattern count = 0   1: def
25  No options   3: def
26  First char = 'a'  
27  Need char = 'c'  /the quick brown fox/P
28  Subject length lower bound = 3      the quick brown fox
29  No set of starting bytes   0: the quick brown fox
30  JIT study was successful      *** Failers
31  Compiled pattern written to testsavedregex  No match: POSIX code 17: match failed
32  Study data written to testsavedregex      The Quick Brown Fox
33    No match: POSIX code 17: match failed
34  <testsavedregex  
35  Compiled pattern loaded from testsavedregex  /the quick brown fox/Pi
36  Study data loaded from testsavedregex      the quick brown fox
37     0: the quick brown fox
38        The Quick Brown Fox
39     0: The Quick Brown Fox
40    
41    /abc.def/P
42        *** Failers
43    No match: POSIX code 17: match failed
44        abc\ndef
45    No match: POSIX code 17: match failed
46    
47    /abc$/P
48      abc      abc
49   0: abc   0: abc
50        abc\n
51     0: abc
52    
53  /a*/SI  /(abc)\2/P
54  Capturing subpattern count = 0  Failed: POSIX code 15: bad back reference at offset 7
 No options  
 No first char  
 No need char  
 Study returned NULL  
   
 /(?(R)a*(?1)|((?R))b)/S+  
     aaaabcde  
 Error -27 (JIT stack limit reached)  
55    
56    /(abc\1)/P
57        abc
58    No match: POSIX code 17: match failed
59    
60    /a*(b+)(z)(z)/P
61        aaaabbbbzzzz
62     0: aaaabbbbzz
63     1: bbbb
64     2: z
65     3: z
66        aaaabbbbzzzz\O0
67        aaaabbbbzzzz\O1
68     0: aaaabbbbzz
69        aaaabbbbzzzz\O2
70     0: aaaabbbbzz
71     1: bbbb
72        aaaabbbbzzzz\O3
73     0: aaaabbbbzz
74     1: bbbb
75     2: z
76        aaaabbbbzzzz\O4
77     0: aaaabbbbzz
78     1: bbbb
79     2: z
80     3: z
81        aaaabbbbzzzz\O5
82     0: aaaabbbbzz
83     1: bbbb
84     2: z
85     3: z
86    
87    /ab.cd/P
88        ab-cd
89     0: ab-cd
90        ab=cd
91     0: ab=cd
92        ** Failers
93    No match: POSIX code 17: match failed
94        ab\ncd
95    No match: POSIX code 17: match failed
96    
97    /ab.cd/Ps
98        ab-cd
99     0: ab-cd
100        ab=cd
101     0: ab=cd
102        ab\ncd
103     0: ab\x0acd
104    
105    /a(b)c/PN
106        abc
107    Matched with REG_NOSUB
108    
109    /a(?P<name>b)c/PN
110        abc
111    Matched with REG_NOSUB
112    
113    /a?|b?/P
114        abc
115     0: a
116        ** Failers
117     0:
118        ddd\N
119    No match: POSIX code 17: match failed
120    
121    /\w+A/P
122       CDAAAAB
123     0: CDAAAA
124    
125    /\w+A/PU
126       CDAAAAB
127     0: CDA
128    
129    /-- End of POSIX tests --/
130    
131    /a\Cb/
132        aXb
133     0: aXb
134        a\nb
135     0: a\x0ab
136        ** Failers (too big char)
137    No match
138        A\x{123}B
139    ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
140    ** Truncation will probably give the wrong result.
141    No match
142    
143  /-- End of testinput14 --/  /-- End of testinput14 --/

Legend:
Removed from v.813  
changed lines
  Added in v.814

  ViewVC Help
Powered by ViewVC 1.1.5