~ubuntu-branches/debian/wheezy/jing-trang/wheezy

« back to all changes in this revision

Viewing changes to mod/regex/test/regextest.xml

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2009-09-01 15:53:03 UTC
  • Revision ID: james.westby@ubuntu.com-20090901155303-2kweef05h5v9j3ni
Tags: upstream-20090818
ImportĀ upstreamĀ versionĀ 20090818

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testSuite>
 
2
<testCase>
 
3
<correct>xyzzy</correct>
 
4
<valid>xyzzy</valid>
 
5
<invalid>xyzz</invalid>
 
6
<invalid>xyzzyy</invalid>
 
7
<invalid>xxyzzy</invalid>
 
8
<invalid>XYZZY</invalid>
 
9
<invalid> xyzzy</invalid>
 
10
</testCase>
 
11
<testCase>
 
12
<correct>\i</correct>
 
13
<valid>j</valid>
 
14
<valid>&#x212E;</valid>
 
15
<valid>:</valid>
 
16
<invalid>&#x10000;</invalid>
 
17
<invalid>&#x10400;</invalid>
 
18
<invalid>&#x10428;</invalid>
 
19
</testCase>
 
20
<testCase>
 
21
<incorrect>a??</incorrect>
 
22
</testCase>
 
23
<testCase>
 
24
<correct>\P{IsGothic}</correct>
 
25
<invalid>&#x10330;</invalid>
 
26
<invalid>&#x1033F;</invalid>
 
27
<invalid>&#x1034F;</invalid>
 
28
<valid>X</valid>
 
29
<valid>&#x1032F;</valid>
 
30
<valid>&#x20330;</valid>
 
31
<valid>&#x30330;</valid>
 
32
<valid>&#x10350;</valid>
 
33
</testCase>
 
34
<testCase>
 
35
<correct>\p{IsGothic}</correct>
 
36
<valid>&#x10330;</valid>
 
37
<valid>&#x1033F;</valid>
 
38
<valid>&#x1034F;</valid>
 
39
<invalid>X</invalid>
 
40
<invalid>&#x1032F;</invalid>
 
41
<invalid>&#x20330;</invalid>
 
42
<invalid>&#x30330;</invalid>
 
43
<invalid>&#x10350;</invalid>
 
44
</testCase>
 
45
<testCase>
 
46
<correct>$</correct>
 
47
<valid>$</valid>
 
48
<invalid/>
 
49
</testCase>
 
50
<testCase>
 
51
<correct>a|b</correct>
 
52
</testCase>
 
53
<testCase>
 
54
<correct>[x-y]</correct>
 
55
</testCase>
 
56
<testCase>
 
57
<correct>[\p{Nd}-[a-z]]</correct>
 
58
</testCase>
 
59
<testCase>
 
60
<correct>[\p{Nd}-[\p{IsThai}]]</correct>
 
61
</testCase>
 
62
<testCase>
 
63
<correct>\p{IsThai}</correct>
 
64
</testCase>
 
65
<testCase>
 
66
<correct>\i\c*</correct>
 
67
</testCase>
 
68
<testCase>
 
69
<correct>~!@#$%\^&amp;\*\(\)_\+`\-=\{\}\[\]\|\\:;"',\.&lt;>/\?</correct>
 
70
<valid>~!@#$%^&amp;*()_+`-={}[]|\:;"',.&lt;>/?</valid>
 
71
</testCase>
 
72
<testCase>
 
73
<correct>[f&amp;&amp;g]</correct>
 
74
<valid>f</valid>
 
75
<valid>&amp;</valid>
 
76
<valid>g</valid>
 
77
</testCase>
 
78
<testCase>
 
79
<correct>^</correct>
 
80
<valid>^</valid>
 
81
</testCase>
 
82
<testCase>
 
83
<incorrect>\</incorrect>
 
84
</testCase>
 
85
<testCase>
 
86
<incorrect>?</incorrect>
 
87
</testCase>
 
88
<testCase>
 
89
<incorrect>*</incorrect>
 
90
</testCase>
 
91
<testCase>
 
92
<incorrect>+</incorrect>
 
93
</testCase>
 
94
<testCase>
 
95
<incorrect>(</incorrect>
 
96
</testCase>
 
97
<testCase>
 
98
<incorrect>[</incorrect>
 
99
</testCase>
 
100
<testCase>
 
101
<incorrect>]</incorrect>
 
102
</testCase>
 
103
<testCase>
 
104
<correct>-</correct>
 
105
<valid>-</valid>
 
106
</testCase>
 
107
<testCase>
 
108
<correct>|</correct>
 
109
<valid/>
 
110
<invalid>|</invalid>
 
111
</testCase>
 
112
<testCase>
 
113
<correct>.</correct>
 
114
<valid>.</valid>
 
115
<invalid/>
 
116
<invalid>
 
117
</invalid>
 
118
<invalid>&#xA;</invalid>
 
119
<invalid>&#xD;</invalid>
 
120
<invalid>..</invalid>
 
121
<valid>&#x10330;</valid>
 
122
</testCase>
 
123
<testCase>
 
124
<incorrect>[^]</incorrect>
 
125
</testCase>
 
126
<testCase>
 
127
<incorrect>[]</incorrect>
 
128
</testCase>
 
129
<testCase>
 
130
<incorrect>[]]</incorrect>
 
131
</testCase>
 
132
<testCase>
 
133
<incorrect>[[]</incorrect>
 
134
</testCase>
 
135
<testCase>
 
136
<incorrect>[\]</incorrect>
 
137
</testCase>
 
138
<testCase>
 
139
<correct>[^^]</correct>
 
140
<valid>x</valid>
 
141
<invalid>^</invalid>
 
142
</testCase>
 
143
<testCase>
 
144
<correct>[?+*(){}|.]</correct>
 
145
<valid>?</valid>
 
146
<valid>+</valid>
 
147
<valid>*</valid>
 
148
<valid>(</valid>
 
149
<valid>)</valid>
 
150
<valid>{</valid>
 
151
<valid>}</valid>
 
152
<valid>|</valid>
 
153
<valid>.</valid>
 
154
<invalid>x</invalid>
 
155
</testCase>
 
156
<testCase>
 
157
<correct/>
 
158
<valid/>
 
159
<invalid>x</invalid>
 
160
</testCase>
 
161
<testCase>
 
162
<incorrect>x{2,1}</incorrect>
 
163
</testCase>
 
164
<testCase>
 
165
<correct>x{1,1}</correct>
 
166
<valid>x</valid>
 
167
</testCase>
 
168
<testCase>
 
169
<incorrect>x{1, 2}</incorrect>
 
170
</testCase>
 
171
<testCase>
 
172
<incorrect>x{ 2}</incorrect>
 
173
</testCase>
 
174
<testCase>
 
175
<incorrect>x{2 }</incorrect>
 
176
</testCase>
 
177
<testCase>
 
178
<incorrect>x{-0,1}</incorrect>
 
179
</testCase>
 
180
<testCase>
 
181
<incorrect>x{+2}</incorrect>
 
182
</testCase>
 
183
<testCase>
 
184
<correct>[a-z-[c-y]]</correct>
 
185
<valid>a</valid>
 
186
<valid>b</valid>
 
187
<valid>z</valid>
 
188
<invalid>c</invalid>
 
189
<invalid>y</invalid>
 
190
<invalid>d</invalid>
 
191
</testCase>
 
192
<testCase>
 
193
<correct>[abc-[a-a]]</correct>
 
194
<valid>b</valid>
 
195
<valid>c</valid>
 
196
<invalid>a</invalid>
 
197
<invalid>d</invalid>
 
198
</testCase>
 
199
<testCase>
 
200
<incorrect>[a-[a]-[a]]</incorrect>
 
201
</testCase>
 
202
<testCase>
 
203
<incorrect>\pL</incorrect>
 
204
</testCase>
 
205
<testCase>
 
206
<incorrect>\p{IsHighSurrogates}</incorrect>
 
207
</testCase>
 
208
 <testCase>
 
209
<incorrect>\p{IsHighPrivateUseSurrogates}</incorrect>
 
210
</testCase>
 
211
<testCase>
 
212
<incorrect>\p{IsLowSurrogates}</incorrect>
 
213
</testCase>
 
214
<testCase>
 
215
<correct>a[&#x10330;-[&#x10330;]]*b</correct>
 
216
<valid>ab</valid>
 
217
<invalid>a&#x10330;b</invalid>
 
218
</testCase>
 
219
</testSuite>