/[pcre]/code/trunk/testdata/testinput14
ViewVC logotype

Contents of /code/trunk/testdata/testinput14

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1370 - (show annotations)
Wed Oct 9 10:18:26 2013 UTC (6 years, 3 months ago) by ph10
File size: 12398 byte(s)
Add \o{} and tidy up \x{} handling. Minor update to RunTest.
1 /-- This set of tests is run only with the 8-bit library. It starts with all
2 the tests of the POSIX interface, because that is supported only with the
3 8-bit library. --/
4
5 /abc/P
6 abc
7 *** Failers
8
9 /^abc|def/P
10 abcdef
11 abcdef\B
12
13 /.*((abc)$|(def))/P
14 defabc
15 \Zdefabc
16
17 /the quick brown fox/P
18 the quick brown fox
19 *** Failers
20 The Quick Brown Fox
21
22 /the quick brown fox/Pi
23 the quick brown fox
24 The Quick Brown Fox
25
26 /abc.def/P
27 *** Failers
28 abc\ndef
29
30 /abc$/P
31 abc
32 abc\n
33
34 /(abc)\2/P
35
36 /(abc\1)/P
37 abc
38
39 /a*(b+)(z)(z)/P
40 aaaabbbbzzzz
41 aaaabbbbzzzz\O0
42 aaaabbbbzzzz\O1
43 aaaabbbbzzzz\O2
44 aaaabbbbzzzz\O3
45 aaaabbbbzzzz\O4
46 aaaabbbbzzzz\O5
47
48 /ab.cd/P
49 ab-cd
50 ab=cd
51 ** Failers
52 ab\ncd
53
54 /ab.cd/Ps
55 ab-cd
56 ab=cd
57 ab\ncd
58
59 /a(b)c/PN
60 abc
61
62 /a(?P<name>b)c/PN
63 abc
64
65 /a?|b?/P
66 abc
67 ** Failers
68 ddd\N
69
70 /\w+A/P
71 CDAAAAB
72
73 /\w+A/PU
74 CDAAAAB
75
76 /\Biss\B/I+P
77 Mississippi
78
79 /abc/\P
80
81 /-- End of POSIX tests --/
82
83 /a\Cb/
84 aXb
85 a\nb
86 ** Failers (too big char)
87 A\x{123}B
88 A\o{443}B
89
90 /\x{100}/I
91
92 /\o{400}/I
93
94 / (?: [\040\t] | \(
95 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
96 \) )* # optional leading comment
97 (?: (?:
98 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
99 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
100 |
101 " (?: # opening quote...
102 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
103 | # or
104 \\ [^\x80-\xff] # Escaped something (something != CR)
105 )* " # closing quote
106 ) # initial word
107 (?: (?: [\040\t] | \(
108 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
109 \) )* \. (?: [\040\t] | \(
110 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
111 \) )* (?:
112 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
113 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
114 |
115 " (?: # opening quote...
116 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
117 | # or
118 \\ [^\x80-\xff] # Escaped something (something != CR)
119 )* " # closing quote
120 ) )* # further okay, if led by a period
121 (?: [\040\t] | \(
122 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
123 \) )* @ (?: [\040\t] | \(
124 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
125 \) )* (?:
126 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
127 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
128 | \[ # [
129 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
130 \] # ]
131 ) # initial subdomain
132 (?: #
133 (?: [\040\t] | \(
134 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
135 \) )* \. # if led by a period...
136 (?: [\040\t] | \(
137 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
138 \) )* (?:
139 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
140 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
141 | \[ # [
142 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
143 \] # ]
144 ) # ...further okay
145 )*
146 # address
147 | # or
148 (?:
149 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
150 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
151 |
152 " (?: # opening quote...
153 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
154 | # or
155 \\ [^\x80-\xff] # Escaped something (something != CR)
156 )* " # closing quote
157 ) # one word, optionally followed by....
158 (?:
159 [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
160 \(
161 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
162 \) | # comments, or...
163
164 " (?: # opening quote...
165 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
166 | # or
167 \\ [^\x80-\xff] # Escaped something (something != CR)
168 )* " # closing quote
169 # quoted strings
170 )*
171 < (?: [\040\t] | \(
172 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
173 \) )* # leading <
174 (?: @ (?: [\040\t] | \(
175 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
176 \) )* (?:
177 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
178 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
179 | \[ # [
180 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
181 \] # ]
182 ) # initial subdomain
183 (?: #
184 (?: [\040\t] | \(
185 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
186 \) )* \. # if led by a period...
187 (?: [\040\t] | \(
188 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
189 \) )* (?:
190 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
191 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
192 | \[ # [
193 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
194 \] # ]
195 ) # ...further okay
196 )*
197
198 (?: (?: [\040\t] | \(
199 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
200 \) )* , (?: [\040\t] | \(
201 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
202 \) )* @ (?: [\040\t] | \(
203 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
204 \) )* (?:
205 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
206 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
207 | \[ # [
208 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
209 \] # ]
210 ) # initial subdomain
211 (?: #
212 (?: [\040\t] | \(
213 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
214 \) )* \. # if led by a period...
215 (?: [\040\t] | \(
216 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
217 \) )* (?:
218 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
219 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
220 | \[ # [
221 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
222 \] # ]
223 ) # ...further okay
224 )*
225 )* # further okay, if led by comma
226 : # closing colon
227 (?: [\040\t] | \(
228 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
229 \) )* )? # optional route
230 (?:
231 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
232 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
233 |
234 " (?: # opening quote...
235 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
236 | # or
237 \\ [^\x80-\xff] # Escaped something (something != CR)
238 )* " # closing quote
239 ) # initial word
240 (?: (?: [\040\t] | \(
241 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
242 \) )* \. (?: [\040\t] | \(
243 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
244 \) )* (?:
245 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
246 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
247 |
248 " (?: # opening quote...
249 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
250 | # or
251 \\ [^\x80-\xff] # Escaped something (something != CR)
252 )* " # closing quote
253 ) )* # further okay, if led by a period
254 (?: [\040\t] | \(
255 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
256 \) )* @ (?: [\040\t] | \(
257 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
258 \) )* (?:
259 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
260 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
261 | \[ # [
262 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
263 \] # ]
264 ) # initial subdomain
265 (?: #
266 (?: [\040\t] | \(
267 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
268 \) )* \. # if led by a period...
269 (?: [\040\t] | \(
270 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
271 \) )* (?:
272 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
273 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
274 | \[ # [
275 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
276 \] # ]
277 ) # ...further okay
278 )*
279 # address spec
280 (?: [\040\t] | \(
281 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
282 \) )* > # trailing >
283 # name and address
284 ) (?: [\040\t] | \(
285 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
286 \) )* # optional trailing comment
287 /xSI
288
289 /-- Although this saved pattern was compiled with link-size=2, it does no harm
290 to run this test with other link sizes because it is going to generated a
291 "compiled in wrong mode" error as soon as it is loaded, so the link size does
292 not matter. --/
293
294 <!testsaved16
295
296 <!testsaved32
297
298 /\h/SI
299
300 /\H/SI
301
302 /\v/SI
303
304 /\V/SI
305
306 /\R/SI
307
308 /[\h]/BZ
309 >\x09<
310
311 /[\h]+/BZ
312 >\x09\x20\xa0<
313
314 /[\v]/BZ
315
316 /[\H]/BZ
317
318 /[^\h]/BZ
319
320 /[\V]/BZ
321
322 /[\x0a\V]/BZ
323
324 /\777/I
325
326 /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF)XX/K
327 XX
328
329 /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE)XX/K
330 XX
331
332 /\u0100/<JS>
333
334 /[\u0100-\u0200]/<JS>
335
336 /-- End of testinput14 --/

  ViewVC Help
Powered by ViewVC 1.1.5