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 |
/-- End of POSIX tests --/
|
80 |
|
81 |
/a\Cb/
|
82 |
aXb
|
83 |
a\nb
|
84 |
** Failers (too big char)
|
85 |
A\x{123}B
|
86 |
|
87 |
/\x{100}/I
|
88 |
|
89 |
/ (?: [\040\t] | \(
|
90 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
91 |
\) )* # optional leading comment
|
92 |
(?: (?:
|
93 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
94 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
95 |
|
|
96 |
" (?: # opening quote...
|
97 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
98 |
| # or
|
99 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
100 |
)* " # closing quote
|
101 |
) # initial word
|
102 |
(?: (?: [\040\t] | \(
|
103 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
104 |
\) )* \. (?: [\040\t] | \(
|
105 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
106 |
\) )* (?:
|
107 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
108 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
109 |
|
|
110 |
" (?: # opening quote...
|
111 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
112 |
| # or
|
113 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
114 |
)* " # closing quote
|
115 |
) )* # further okay, if led by a period
|
116 |
(?: [\040\t] | \(
|
117 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
118 |
\) )* @ (?: [\040\t] | \(
|
119 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
120 |
\) )* (?:
|
121 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
122 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
123 |
| \[ # [
|
124 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
125 |
\] # ]
|
126 |
) # initial subdomain
|
127 |
(?: #
|
128 |
(?: [\040\t] | \(
|
129 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
130 |
\) )* \. # if led by a period...
|
131 |
(?: [\040\t] | \(
|
132 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
133 |
\) )* (?:
|
134 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
135 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
136 |
| \[ # [
|
137 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
138 |
\] # ]
|
139 |
) # ...further okay
|
140 |
)*
|
141 |
# address
|
142 |
| # or
|
143 |
(?:
|
144 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
145 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
146 |
|
|
147 |
" (?: # opening quote...
|
148 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
149 |
| # or
|
150 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
151 |
)* " # closing quote
|
152 |
) # one word, optionally followed by....
|
153 |
(?:
|
154 |
[^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
|
155 |
\(
|
156 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
157 |
\) | # comments, or...
|
158 |
|
159 |
" (?: # opening quote...
|
160 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
161 |
| # or
|
162 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
163 |
)* " # closing quote
|
164 |
# quoted strings
|
165 |
)*
|
166 |
< (?: [\040\t] | \(
|
167 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
168 |
\) )* # leading <
|
169 |
(?: @ (?: [\040\t] | \(
|
170 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
171 |
\) )* (?:
|
172 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
173 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
174 |
| \[ # [
|
175 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
176 |
\] # ]
|
177 |
) # initial subdomain
|
178 |
(?: #
|
179 |
(?: [\040\t] | \(
|
180 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
181 |
\) )* \. # if led by a period...
|
182 |
(?: [\040\t] | \(
|
183 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
184 |
\) )* (?:
|
185 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
186 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
187 |
| \[ # [
|
188 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
189 |
\] # ]
|
190 |
) # ...further okay
|
191 |
)*
|
192 |
|
193 |
(?: (?: [\040\t] | \(
|
194 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
195 |
\) )* , (?: [\040\t] | \(
|
196 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
197 |
\) )* @ (?: [\040\t] | \(
|
198 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
199 |
\) )* (?:
|
200 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
201 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
202 |
| \[ # [
|
203 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
204 |
\] # ]
|
205 |
) # initial subdomain
|
206 |
(?: #
|
207 |
(?: [\040\t] | \(
|
208 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
209 |
\) )* \. # if led by a period...
|
210 |
(?: [\040\t] | \(
|
211 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
212 |
\) )* (?:
|
213 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
214 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
215 |
| \[ # [
|
216 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
217 |
\] # ]
|
218 |
) # ...further okay
|
219 |
)*
|
220 |
)* # further okay, if led by comma
|
221 |
: # closing colon
|
222 |
(?: [\040\t] | \(
|
223 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
224 |
\) )* )? # optional route
|
225 |
(?:
|
226 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
227 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
228 |
|
|
229 |
" (?: # opening quote...
|
230 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
231 |
| # or
|
232 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
233 |
)* " # closing quote
|
234 |
) # initial word
|
235 |
(?: (?: [\040\t] | \(
|
236 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
237 |
\) )* \. (?: [\040\t] | \(
|
238 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
239 |
\) )* (?:
|
240 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
241 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
242 |
|
|
243 |
" (?: # opening quote...
|
244 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
245 |
| # or
|
246 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
247 |
)* " # closing quote
|
248 |
) )* # further okay, if led by a period
|
249 |
(?: [\040\t] | \(
|
250 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
251 |
\) )* @ (?: [\040\t] | \(
|
252 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
253 |
\) )* (?:
|
254 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
255 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
256 |
| \[ # [
|
257 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
258 |
\] # ]
|
259 |
) # initial subdomain
|
260 |
(?: #
|
261 |
(?: [\040\t] | \(
|
262 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
263 |
\) )* \. # if led by a period...
|
264 |
(?: [\040\t] | \(
|
265 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
266 |
\) )* (?:
|
267 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
268 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
269 |
| \[ # [
|
270 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
271 |
\] # ]
|
272 |
) # ...further okay
|
273 |
)*
|
274 |
# address spec
|
275 |
(?: [\040\t] | \(
|
276 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
277 |
\) )* > # trailing >
|
278 |
# name and address
|
279 |
) (?: [\040\t] | \(
|
280 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
281 |
\) )* # optional trailing comment
|
282 |
/xSI
|
283 |
|
284 |
/-- End of testinput14 --/
|