leptris 1.9.232.0-arm-linux → 1.9.237.0-arm-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/Rakefile +1 -1
- data/ext/leptris/native/native.c +144 -3
- data/lib/leptris/version.rb +1 -1
- data/lib/leptris/xml/document.rb +20 -3
- data/lib/leptris/xml/ffi.rb +91 -62
- data/lib/leptris/xml/native.so +0 -0
- data/lib/libleptris.so +0 -0
- data/vendor-src/README.md +1 -1
- data/vendor-src/libleptris/CHANGELOG.md +113 -4
- data/vendor-src/libleptris/CMakeLists.txt +1 -1
- data/vendor-src/libleptris/benchmarks/dom/bench_leptris.c +14 -6
- data/vendor-src/libleptris/src/include/leptris.h +27 -0
- data/vendor-src/libleptris/src/leptris/dom/element_modify.c +20 -0
- data/vendor-src/libleptris/src/leptris/leptris_internal.h +5 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator.c +7 -0
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_operators.c +38 -4
- data/vendor-src/libleptris/src/leptris/xpath/evaluator_types.c +5 -1
- data/vendor-src/libleptris/src/leptris/xpath/functions.c +86 -7
- data/vendor-src/libleptris/src/leptris/xpath/functions_ext31.c +237 -24
- data/vendor-src/libleptris/src/leptris/xpath/xpath_public.c +16 -1
- data/vendor-src/libleptris/test/dom/test_dom.cpp +80 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/count.xml +3117 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/empty.xml +502 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/exists.xml +537 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/head.xml +90 -0
- data/vendor-src/libleptris/test/xquery/qt3/fn/tail.xml +68 -0
- data/vendor-src/libleptris/test/xquery/test_qt3.cpp +124 -93
- data/vendor-src/libleptris/test/xquery/test_xquery.cpp +28 -0
- data/vendor-src/libleptris/vcpkg.json +1 -1
- metadata +6 -1
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="us-ascii"?>
|
|
2
|
+
<test-set xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="fn-empty">
|
|
3
|
+
<description>Tests for the empty() function</description>
|
|
4
|
+
<link type="spec" document="http://www.w3.org/TR/xpath-functions-30/"
|
|
5
|
+
idref="func-empty"/>
|
|
6
|
+
|
|
7
|
+
<test-case name="fn-emptyint1args-1">
|
|
8
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:int(lower bound) </description>
|
|
9
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
10
|
+
<test>fn:empty((xs:int("-2147483648")))</test>
|
|
11
|
+
<result>
|
|
12
|
+
<assert-false/>
|
|
13
|
+
</result>
|
|
14
|
+
</test-case>
|
|
15
|
+
|
|
16
|
+
<test-case name="fn-emptyint1args-2">
|
|
17
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:int(mid range) </description>
|
|
18
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
19
|
+
<test>fn:empty((xs:int("-1873914410")))</test>
|
|
20
|
+
<result>
|
|
21
|
+
<assert-false/>
|
|
22
|
+
</result>
|
|
23
|
+
</test-case>
|
|
24
|
+
|
|
25
|
+
<test-case name="fn-emptyint1args-3">
|
|
26
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:int(upper bound) </description>
|
|
27
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
28
|
+
<test>fn:empty((xs:int("2147483647")))</test>
|
|
29
|
+
<result>
|
|
30
|
+
<assert-false/>
|
|
31
|
+
</result>
|
|
32
|
+
</test-case>
|
|
33
|
+
|
|
34
|
+
<test-case name="fn-emptyintg1args-1">
|
|
35
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:integer(lower bound) </description>
|
|
36
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
37
|
+
<test>fn:empty((xs:integer("-999999999999999999")))</test>
|
|
38
|
+
<result>
|
|
39
|
+
<assert-false/>
|
|
40
|
+
</result>
|
|
41
|
+
</test-case>
|
|
42
|
+
|
|
43
|
+
<test-case name="fn-emptyintg1args-2">
|
|
44
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:integer(mid range) </description>
|
|
45
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
46
|
+
<test>fn:empty((xs:integer("830993497117024304")))</test>
|
|
47
|
+
<result>
|
|
48
|
+
<assert-false/>
|
|
49
|
+
</result>
|
|
50
|
+
</test-case>
|
|
51
|
+
|
|
52
|
+
<test-case name="fn-emptyintg1args-3">
|
|
53
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:integer(upper bound) </description>
|
|
54
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
55
|
+
<test>fn:empty((xs:integer("999999999999999999")))</test>
|
|
56
|
+
<result>
|
|
57
|
+
<assert-false/>
|
|
58
|
+
</result>
|
|
59
|
+
</test-case>
|
|
60
|
+
|
|
61
|
+
<test-case name="fn-emptydec1args-1">
|
|
62
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:decimal(lower bound) </description>
|
|
63
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
64
|
+
<test>fn:empty((xs:decimal("-999999999999999999")))</test>
|
|
65
|
+
<result>
|
|
66
|
+
<assert-false/>
|
|
67
|
+
</result>
|
|
68
|
+
</test-case>
|
|
69
|
+
|
|
70
|
+
<test-case name="fn-emptydec1args-2">
|
|
71
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:decimal(mid range) </description>
|
|
72
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
73
|
+
<test>fn:empty((xs:decimal("617375191608514839")))</test>
|
|
74
|
+
<result>
|
|
75
|
+
<assert-false/>
|
|
76
|
+
</result>
|
|
77
|
+
</test-case>
|
|
78
|
+
|
|
79
|
+
<test-case name="fn-emptydec1args-3">
|
|
80
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:decimal(upper bound) </description>
|
|
81
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
82
|
+
<test>fn:empty((xs:decimal("999999999999999999")))</test>
|
|
83
|
+
<result>
|
|
84
|
+
<assert-false/>
|
|
85
|
+
</result>
|
|
86
|
+
</test-case>
|
|
87
|
+
|
|
88
|
+
<test-case name="fn-emptydbl1args-1">
|
|
89
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:double(lower bound) </description>
|
|
90
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
91
|
+
<test>fn:empty((xs:double("-1.7976931348623157E308")))</test>
|
|
92
|
+
<result>
|
|
93
|
+
<assert-false/>
|
|
94
|
+
</result>
|
|
95
|
+
</test-case>
|
|
96
|
+
|
|
97
|
+
<test-case name="fn-emptydbl1args-2">
|
|
98
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:double(mid range) </description>
|
|
99
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
100
|
+
<test>fn:empty((xs:double("0")))</test>
|
|
101
|
+
<result>
|
|
102
|
+
<assert-false/>
|
|
103
|
+
</result>
|
|
104
|
+
</test-case>
|
|
105
|
+
|
|
106
|
+
<test-case name="fn-emptydbl1args-3">
|
|
107
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:double(upper bound) </description>
|
|
108
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
109
|
+
<test>fn:empty((xs:double("1.7976931348623157E308")))</test>
|
|
110
|
+
<result>
|
|
111
|
+
<assert-false/>
|
|
112
|
+
</result>
|
|
113
|
+
</test-case>
|
|
114
|
+
|
|
115
|
+
<test-case name="fn-emptyflt1args-1">
|
|
116
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:float(lower bound) </description>
|
|
117
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
118
|
+
<test>fn:empty((xs:float("-3.4028235E38")))</test>
|
|
119
|
+
<result>
|
|
120
|
+
<assert-false/>
|
|
121
|
+
</result>
|
|
122
|
+
</test-case>
|
|
123
|
+
|
|
124
|
+
<test-case name="fn-emptyflt1args-2">
|
|
125
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:float(mid range) </description>
|
|
126
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
127
|
+
<test>fn:empty((xs:float("0")))</test>
|
|
128
|
+
<result>
|
|
129
|
+
<assert-false/>
|
|
130
|
+
</result>
|
|
131
|
+
</test-case>
|
|
132
|
+
|
|
133
|
+
<test-case name="fn-emptyflt1args-3">
|
|
134
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:float(upper bound) </description>
|
|
135
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
136
|
+
<test>fn:empty((xs:float("3.4028235E38")))</test>
|
|
137
|
+
<result>
|
|
138
|
+
<assert-false/>
|
|
139
|
+
</result>
|
|
140
|
+
</test-case>
|
|
141
|
+
|
|
142
|
+
<test-case name="fn-emptylng1args-1">
|
|
143
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:long(lower bound) </description>
|
|
144
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
145
|
+
<test>fn:empty((xs:long("-92233720368547758")))</test>
|
|
146
|
+
<result>
|
|
147
|
+
<assert-false/>
|
|
148
|
+
</result>
|
|
149
|
+
</test-case>
|
|
150
|
+
|
|
151
|
+
<test-case name="fn-emptylng1args-2">
|
|
152
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:long(mid range) </description>
|
|
153
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
154
|
+
<test>fn:empty((xs:long("-47175562203048468")))</test>
|
|
155
|
+
<result>
|
|
156
|
+
<assert-false/>
|
|
157
|
+
</result>
|
|
158
|
+
</test-case>
|
|
159
|
+
|
|
160
|
+
<test-case name="fn-emptylng1args-3">
|
|
161
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:long(upper bound) </description>
|
|
162
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
163
|
+
<test>fn:empty((xs:long("92233720368547758")))</test>
|
|
164
|
+
<result>
|
|
165
|
+
<assert-false/>
|
|
166
|
+
</result>
|
|
167
|
+
</test-case>
|
|
168
|
+
|
|
169
|
+
<test-case name="fn-emptyusht1args-1">
|
|
170
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedShort(lower bound) </description>
|
|
171
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
172
|
+
<test>fn:empty((xs:unsignedShort("0")))</test>
|
|
173
|
+
<result>
|
|
174
|
+
<assert-false/>
|
|
175
|
+
</result>
|
|
176
|
+
</test-case>
|
|
177
|
+
|
|
178
|
+
<test-case name="fn-emptyusht1args-2">
|
|
179
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedShort(mid range) </description>
|
|
180
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
181
|
+
<test>fn:empty((xs:unsignedShort("44633")))</test>
|
|
182
|
+
<result>
|
|
183
|
+
<assert-false/>
|
|
184
|
+
</result>
|
|
185
|
+
</test-case>
|
|
186
|
+
|
|
187
|
+
<test-case name="fn-emptyusht1args-3">
|
|
188
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedShort(upper bound) </description>
|
|
189
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
190
|
+
<test>fn:empty((xs:unsignedShort("65535")))</test>
|
|
191
|
+
<result>
|
|
192
|
+
<assert-false/>
|
|
193
|
+
</result>
|
|
194
|
+
</test-case>
|
|
195
|
+
|
|
196
|
+
<test-case name="fn-emptynint1args-1">
|
|
197
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:negativeInteger(lower bound) </description>
|
|
198
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
199
|
+
<test>fn:empty((xs:negativeInteger("-999999999999999999")))</test>
|
|
200
|
+
<result>
|
|
201
|
+
<assert-false/>
|
|
202
|
+
</result>
|
|
203
|
+
</test-case>
|
|
204
|
+
|
|
205
|
+
<test-case name="fn-emptynint1args-2">
|
|
206
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:negativeInteger(mid range) </description>
|
|
207
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
208
|
+
<test>fn:empty((xs:negativeInteger("-297014075999096793")))</test>
|
|
209
|
+
<result>
|
|
210
|
+
<assert-false/>
|
|
211
|
+
</result>
|
|
212
|
+
</test-case>
|
|
213
|
+
|
|
214
|
+
<test-case name="fn-emptynint1args-3">
|
|
215
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:negativeInteger(upper bound) </description>
|
|
216
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
217
|
+
<test>fn:empty((xs:negativeInteger("-1")))</test>
|
|
218
|
+
<result>
|
|
219
|
+
<assert-false/>
|
|
220
|
+
</result>
|
|
221
|
+
</test-case>
|
|
222
|
+
|
|
223
|
+
<test-case name="fn-emptypint1args-1">
|
|
224
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:positiveInteger(lower bound) </description>
|
|
225
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
226
|
+
<test>fn:empty((xs:positiveInteger("1")))</test>
|
|
227
|
+
<result>
|
|
228
|
+
<assert-false/>
|
|
229
|
+
</result>
|
|
230
|
+
</test-case>
|
|
231
|
+
|
|
232
|
+
<test-case name="fn-emptypint1args-2">
|
|
233
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:positiveInteger(mid range) </description>
|
|
234
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
235
|
+
<test>fn:empty((xs:positiveInteger("52704602390610033")))</test>
|
|
236
|
+
<result>
|
|
237
|
+
<assert-false/>
|
|
238
|
+
</result>
|
|
239
|
+
</test-case>
|
|
240
|
+
|
|
241
|
+
<test-case name="fn-emptypint1args-3">
|
|
242
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:positiveInteger(upper bound) </description>
|
|
243
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
244
|
+
<test>fn:empty((xs:positiveInteger("999999999999999999")))</test>
|
|
245
|
+
<result>
|
|
246
|
+
<assert-false/>
|
|
247
|
+
</result>
|
|
248
|
+
</test-case>
|
|
249
|
+
|
|
250
|
+
<test-case name="fn-emptyulng1args-1">
|
|
251
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedLong(lower bound) </description>
|
|
252
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
253
|
+
<test>fn:empty((xs:unsignedLong("0")))</test>
|
|
254
|
+
<result>
|
|
255
|
+
<assert-false/>
|
|
256
|
+
</result>
|
|
257
|
+
</test-case>
|
|
258
|
+
|
|
259
|
+
<test-case name="fn-emptyulng1args-2">
|
|
260
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedLong(mid range) </description>
|
|
261
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
262
|
+
<test>fn:empty((xs:unsignedLong("130747108607674654")))</test>
|
|
263
|
+
<result>
|
|
264
|
+
<assert-false/>
|
|
265
|
+
</result>
|
|
266
|
+
</test-case>
|
|
267
|
+
|
|
268
|
+
<test-case name="fn-emptyulng1args-3">
|
|
269
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:unsignedLong(upper bound) </description>
|
|
270
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
271
|
+
<test>fn:empty((xs:unsignedLong("184467440737095516")))</test>
|
|
272
|
+
<result>
|
|
273
|
+
<assert-false/>
|
|
274
|
+
</result>
|
|
275
|
+
</test-case>
|
|
276
|
+
|
|
277
|
+
<test-case name="fn-emptynpi1args-1">
|
|
278
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonPositiveInteger(lower bound) </description>
|
|
279
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
280
|
+
<test>fn:empty((xs:nonPositiveInteger("-999999999999999999")))</test>
|
|
281
|
+
<result>
|
|
282
|
+
<assert-false/>
|
|
283
|
+
</result>
|
|
284
|
+
</test-case>
|
|
285
|
+
|
|
286
|
+
<test-case name="fn-emptynpi1args-2">
|
|
287
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonPositiveInteger(mid range) </description>
|
|
288
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
289
|
+
<test>fn:empty((xs:nonPositiveInteger("-475688437271870490")))</test>
|
|
290
|
+
<result>
|
|
291
|
+
<assert-false/>
|
|
292
|
+
</result>
|
|
293
|
+
</test-case>
|
|
294
|
+
|
|
295
|
+
<test-case name="fn-emptynpi1args-3">
|
|
296
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonPositiveInteger(upper bound) </description>
|
|
297
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
298
|
+
<test>fn:empty((xs:nonPositiveInteger("0")))</test>
|
|
299
|
+
<result>
|
|
300
|
+
<assert-false/>
|
|
301
|
+
</result>
|
|
302
|
+
</test-case>
|
|
303
|
+
|
|
304
|
+
<test-case name="fn-emptynni1args-1">
|
|
305
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonNegativeInteger(lower bound) </description>
|
|
306
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
307
|
+
<test>fn:empty((xs:nonNegativeInteger("0")))</test>
|
|
308
|
+
<result>
|
|
309
|
+
<assert-false/>
|
|
310
|
+
</result>
|
|
311
|
+
</test-case>
|
|
312
|
+
|
|
313
|
+
<test-case name="fn-emptynni1args-2">
|
|
314
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonNegativeInteger(mid range) </description>
|
|
315
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
316
|
+
<test>fn:empty((xs:nonNegativeInteger("303884545991464527")))</test>
|
|
317
|
+
<result>
|
|
318
|
+
<assert-false/>
|
|
319
|
+
</result>
|
|
320
|
+
</test-case>
|
|
321
|
+
|
|
322
|
+
<test-case name="fn-emptynni1args-3">
|
|
323
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:nonNegativeInteger(upper bound) </description>
|
|
324
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
325
|
+
<test>fn:empty((xs:nonNegativeInteger("999999999999999999")))</test>
|
|
326
|
+
<result>
|
|
327
|
+
<assert-false/>
|
|
328
|
+
</result>
|
|
329
|
+
</test-case>
|
|
330
|
+
|
|
331
|
+
<test-case name="fn-emptysht1args-1">
|
|
332
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:short(lower bound) </description>
|
|
333
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
334
|
+
<test>fn:empty((xs:short("-32768")))</test>
|
|
335
|
+
<result>
|
|
336
|
+
<assert-false/>
|
|
337
|
+
</result>
|
|
338
|
+
</test-case>
|
|
339
|
+
|
|
340
|
+
<test-case name="fn-emptysht1args-2">
|
|
341
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:short(mid range) </description>
|
|
342
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
343
|
+
<test>fn:empty((xs:short("-5324")))</test>
|
|
344
|
+
<result>
|
|
345
|
+
<assert-false/>
|
|
346
|
+
</result>
|
|
347
|
+
</test-case>
|
|
348
|
+
|
|
349
|
+
<test-case name="fn-emptysht1args-3">
|
|
350
|
+
<description> Evaluates The "empty" function with the arguments set as follows: $arg = xs:short(upper bound) </description>
|
|
351
|
+
<created by="Carmelo Montanez" on="2004-12-13"/>
|
|
352
|
+
<test>fn:empty((xs:short("32767")))</test>
|
|
353
|
+
<result>
|
|
354
|
+
<assert-false/>
|
|
355
|
+
</result>
|
|
356
|
+
</test-case>
|
|
357
|
+
|
|
358
|
+
<test-case name="K-SeqEmptyFunc-1">
|
|
359
|
+
<description> A test whose essence is: `empty(1, 2)`. </description>
|
|
360
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
361
|
+
<test>empty(1, 2)</test>
|
|
362
|
+
<result>
|
|
363
|
+
<error code="XPST0017"/>
|
|
364
|
+
</result>
|
|
365
|
+
</test-case>
|
|
366
|
+
|
|
367
|
+
<test-case name="K-SeqEmptyFunc-2">
|
|
368
|
+
<description> A test whose essence is: `empty()`. </description>
|
|
369
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
370
|
+
<test>empty()</test>
|
|
371
|
+
<result>
|
|
372
|
+
<error code="XPST0017"/>
|
|
373
|
+
</result>
|
|
374
|
+
</test-case>
|
|
375
|
+
|
|
376
|
+
<test-case name="K-SeqEmptyFunc-3">
|
|
377
|
+
<description> A test whose essence is: `not(empty("string"))`. </description>
|
|
378
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
379
|
+
<test>not(empty("string"))</test>
|
|
380
|
+
<result>
|
|
381
|
+
<assert-true/>
|
|
382
|
+
</result>
|
|
383
|
+
</test-case>
|
|
384
|
+
|
|
385
|
+
<test-case name="K-SeqEmptyFunc-4">
|
|
386
|
+
<description> A test whose essence is: `not(empty((1, (), "string")))`. </description>
|
|
387
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
388
|
+
<test>not(empty((1, (), "string")))</test>
|
|
389
|
+
<result>
|
|
390
|
+
<assert-true/>
|
|
391
|
+
</result>
|
|
392
|
+
</test-case>
|
|
393
|
+
|
|
394
|
+
<test-case name="K-SeqEmptyFunc-5">
|
|
395
|
+
<description> A test whose essence is: `not(empty((1, "string")))`. </description>
|
|
396
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
397
|
+
<test>not(empty((1, "string")))</test>
|
|
398
|
+
<result>
|
|
399
|
+
<assert-true/>
|
|
400
|
+
</result>
|
|
401
|
+
</test-case>
|
|
402
|
+
|
|
403
|
+
<test-case name="K-SeqEmptyFunc-6">
|
|
404
|
+
<description> A test whose essence is: `not(empty( ((), 1, "string") ))`. </description>
|
|
405
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
406
|
+
<test>not(empty( ((), 1, "string") ))</test>
|
|
407
|
+
<result>
|
|
408
|
+
<assert-true/>
|
|
409
|
+
</result>
|
|
410
|
+
</test-case>
|
|
411
|
+
|
|
412
|
+
<test-case name="K-SeqEmptyFunc-7">
|
|
413
|
+
<description> A test whose essence is: `empty(())`. </description>
|
|
414
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
415
|
+
<test>empty(())</test>
|
|
416
|
+
<result>
|
|
417
|
+
<assert-true/>
|
|
418
|
+
</result>
|
|
419
|
+
</test-case>
|
|
420
|
+
|
|
421
|
+
<test-case name="K-SeqEmptyFunc-8">
|
|
422
|
+
<description> A test whose essence is: `empty( ((), (), ()) )`. </description>
|
|
423
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
424
|
+
<test>empty( ((), (), ()) )</test>
|
|
425
|
+
<result>
|
|
426
|
+
<assert-true/>
|
|
427
|
+
</result>
|
|
428
|
+
</test-case>
|
|
429
|
+
|
|
430
|
+
<test-case name="K-SeqEmptyFunc-9">
|
|
431
|
+
<description> fn:empty combined with fn:remove and fn:not. </description>
|
|
432
|
+
<created by="Frans Englich" on="2007-11-26"/>
|
|
433
|
+
<test>not(exists(remove(remove((current-time(), 1), 1), 1)))</test>
|
|
434
|
+
<result>
|
|
435
|
+
<assert-true/>
|
|
436
|
+
</result>
|
|
437
|
+
</test-case>
|
|
438
|
+
|
|
439
|
+
<test-case name="cbcl-empty-func-001">
|
|
440
|
+
<description> test fn:empty on a mix of values and expressions </description>
|
|
441
|
+
<created by="Tim Mills" on="2008-04-11"/>
|
|
442
|
+
<dependency type="spec" value="XQ10+"/>
|
|
443
|
+
<test>
|
|
444
|
+
declare function local:generate($arg as xs:integer?) { if ($arg = 0) then (1, 2, 3) else $arg };
|
|
445
|
+
fn:empty( ((), local:generate( () ), local:generate( 0 ), (1 to 10000000), local:generate( () ), local:generate(1)) )
|
|
446
|
+
</test>
|
|
447
|
+
<result>
|
|
448
|
+
<assert-false/>
|
|
449
|
+
</result>
|
|
450
|
+
</test-case>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
<test-case name="cbcl-empty-func-002">
|
|
454
|
+
<description> Test empty with foreach </description>
|
|
455
|
+
<created by="Nick Jones" on="2008-06-12"/>
|
|
456
|
+
<test>empty(for $x in (1 to 10)[. mod 2 = 0] return "blah")</test>
|
|
457
|
+
<result>
|
|
458
|
+
<assert-false/>
|
|
459
|
+
</result>
|
|
460
|
+
</test-case>
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
<test-case name="cbcl-empty-func-003">
|
|
464
|
+
<description> Test empty with foreach </description>
|
|
465
|
+
<created by="Nick Jones" on="2008-06-12"/>
|
|
466
|
+
<test>boolean(empty(for $x in (1 to 10)[. mod 2 = 0] return "blah"))</test>
|
|
467
|
+
<result>
|
|
468
|
+
<assert-false/>
|
|
469
|
+
</result>
|
|
470
|
+
</test-case>
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
<test-case name="cbcl-empty-func-004">
|
|
474
|
+
<description> Tests empty on text node </description>
|
|
475
|
+
<created by="Nick Jones" on="2008-06-17"/>
|
|
476
|
+
<dependency type="spec" value="XQ10+"/>
|
|
477
|
+
<test>empty(text {(1 to 10)[. mod 2 = 0]})</test>
|
|
478
|
+
<result>
|
|
479
|
+
<assert-false/>
|
|
480
|
+
</result>
|
|
481
|
+
</test-case>
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
<test-case name="cbcl-empty-func-005">
|
|
485
|
+
<description> Tests on optimization as aggregate function </description>
|
|
486
|
+
<created by="Nick Jones" on="2008-06-17"/>
|
|
487
|
+
<test>empty(for $x in (1 to 10)[. mod 2 = 0] return true())</test>
|
|
488
|
+
<result>
|
|
489
|
+
<assert-false/>
|
|
490
|
+
</result>
|
|
491
|
+
</test-case>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
<test-case name="cbcl-empty-func-006">
|
|
495
|
+
<description> Tests empty on a map expression </description>
|
|
496
|
+
<created by="Nick Jones" on="2008-06-17"/>
|
|
497
|
+
<test>empty(for $x in (1 to 10)[. mod 2 = 0] return floor($x))</test>
|
|
498
|
+
<result>
|
|
499
|
+
<assert-false/>
|
|
500
|
+
</result>
|
|
501
|
+
</test-case>
|
|
502
|
+
</test-set>
|