leptris 1.9.231.0-arm-linux → 1.9.232.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Rakefile +1 -1
  4. data/ext/leptris/native/native.c +39 -0
  5. data/lib/leptris/version.rb +1 -1
  6. data/lib/leptris/xml/ffi.rb +4 -0
  7. data/lib/leptris/xml/native.so +0 -0
  8. data/lib/leptris/xml/node.rb +28 -0
  9. data/lib/libleptris.so +0 -0
  10. data/vendor-src/README.md +1 -1
  11. data/vendor-src/libleptris/CHANGELOG.md +15 -0
  12. data/vendor-src/libleptris/CMakeLists.txt +1 -1
  13. data/vendor-src/libleptris/src/include/leptris/descriptor.h +5 -1
  14. data/vendor-src/libleptris/src/include/leptris.h +17 -0
  15. data/vendor-src/libleptris/src/leptris/descriptor/plan.c +26 -6
  16. data/vendor-src/libleptris/src/leptris/dom/node.c +24 -7
  17. data/vendor-src/libleptris/src/leptris/xpath/evaluator_operators.c +22 -8
  18. data/vendor-src/libleptris/src/leptris/xpath/functions.c +29 -8
  19. data/vendor-src/libleptris/src/leptris/xpath/functions_ext31.c +30 -1
  20. data/vendor-src/libleptris/src/leptris/xpath/parser.c +106 -6
  21. data/vendor-src/libleptris/test/abi/test_descriptor.cpp +68 -0
  22. data/vendor-src/libleptris/test/dom/test_dom.cpp +56 -0
  23. data/vendor-src/libleptris/test/xquery/qt3/fn/codepoints-to-string.xml +808 -0
  24. data/vendor-src/libleptris/test/xquery/qt3/fn/deep-equal.xml +2709 -0
  25. data/vendor-src/libleptris/test/xquery/qt3/fn/distinct-values.xml +1223 -0
  26. data/vendor-src/libleptris/test/xquery/qt3/fn/index-of.xml +493 -0
  27. data/vendor-src/libleptris/test/xquery/qt3/fn/insert-before.xml +399 -0
  28. data/vendor-src/libleptris/test/xquery/qt3/fn/remove.xml +480 -0
  29. data/vendor-src/libleptris/test/xquery/qt3/fn/reverse.xml +653 -0
  30. data/vendor-src/libleptris/test/xquery/qt3/fn/string-to-codepoints.xml +452 -0
  31. data/vendor-src/libleptris/test/xquery/qt3/fn/subsequence.xml +1041 -0
  32. data/vendor-src/libleptris/test/xquery/test_qt3.cpp +179 -1
  33. data/vendor-src/libleptris/test/xquery/test_xquery.cpp +27 -0
  34. data/vendor-src/libleptris/vcpkg.json +1 -1
  35. metadata +11 -2
@@ -0,0 +1,452 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <test-set xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="fn-string-to-codepoints">
3
+ <description/>
4
+ <link type="spec" document="http://www.w3.org/TR/xpath-functions-30/"
5
+ idref="func-string-to-codepoints"/>
6
+ <test-case name="fn-string-to-codepoints1args-1">
7
+ <description>
8
+ Purpose: Evaluates The "string-to-codepoints" function
9
+ with the arguments set as follows:
10
+ $arg = xs:string(lower bound)
11
+ </description>
12
+ <created by="Carmelo Montanez" on="2004-12-13"/>
13
+ <test>fn:string-to-codepoints(xs:string("This is a characte"))</test>
14
+ <result>
15
+ <assert-deep-eq>84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 99, 104, 97, 114, 97, 99, 116, 101</assert-deep-eq>
16
+ </result>
17
+ </test-case>
18
+ <test-case name="fn-string-to-codepoints1args-2">
19
+ <description>
20
+ Purpose: Evaluates The "string-to-codepoints" function
21
+ with the arguments set as follows:
22
+ $arg = xs:string(mid range)
23
+ </description>
24
+ <created by="Carmelo Montanez" on="2004-12-13"/>
25
+ <test>fn:string-to-codepoints(xs:string("This is a characte"))</test>
26
+ <result>
27
+ <assert-deep-eq>84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 99, 104, 97, 114, 97, 99, 116, 101</assert-deep-eq>
28
+ </result>
29
+ </test-case>
30
+ <test-case name="fn-string-to-codepoints1args-3">
31
+ <description>
32
+ Purpose: Evaluates The "string-to-codepoints" function
33
+ with the arguments set as follows:
34
+ $arg = xs:string(upper bound)
35
+ </description>
36
+ <created by="Carmelo Montanez" on="2004-12-13"/>
37
+ <test>fn:string-to-codepoints(xs:string("This is a characte"))</test>
38
+ <result>
39
+ <assert-deep-eq>84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 99, 104, 97, 114, 97, 99, 116, 101</assert-deep-eq>
40
+ </result>
41
+ </test-case>
42
+ <test-case name="fn-string-to-codepoints1args-4">
43
+ <description>
44
+ Purpose:Test string-to-codepoints with variety of characters
45
+ </description>
46
+ <created by="Joanne Tong" on="2005-09-23-04:00"/>
47
+ <test>string-to-codepoints('bßڒき豈')</test>
48
+ <result>
49
+ <assert-deep-eq>98, 223, 1682, 12365, 63744</assert-deep-eq>
50
+ </result>
51
+ </test-case>
52
+ <test-case name="fn-string-to-codepoints1args-5">
53
+ <description>
54
+ Purpose:Test string-to-codepoints with an empty string argument
55
+ </description>
56
+ <created by="Joanne Tong" on="2005-09-23-04:00"/>
57
+ <test>fn:string-to-codepoints("")</test>
58
+ <result>
59
+ <assert-empty/>
60
+ </result>
61
+ </test-case>
62
+ <test-case name="fn-string-to-codepoints1args-6">
63
+ <description>
64
+ Purpose:Test string-to-codepoints with empty sequence argument
65
+ </description>
66
+ <created by="Joanne Tong" on="2005-09-23-04:00"/>
67
+ <test>string-to-codepoints(())</test>
68
+ <result>
69
+ <assert-empty/>
70
+ </result>
71
+ </test-case>
72
+ <test-case name="fn-string-to-codepoints1args-7">
73
+ <description>
74
+ Purpose:Test string-to-codepoints with invalid type in argument
75
+ </description>
76
+ <created by="Joanne Tong" on="2005-09-23-04:00"/>
77
+ <test>string-to-codepoints(12)</test>
78
+ <result>
79
+ <error code="XPTY0004"/>
80
+ </result>
81
+ </test-case>
82
+ <test-case name="fn-string-to-codepoints1args-8">
83
+ <description>
84
+ Purpose:Test string-to-codepoints with incorrect function arity
85
+ </description>
86
+ <created by="Joanne Tong" on="2005-09-23-04:00"/>
87
+ <test>string-to-codepoints('abc','def')</test>
88
+ <result>
89
+ <error code="XPST0017"/>
90
+ </result>
91
+ </test-case>
92
+ <test-case name="fn-string-to-codepoints-1">
93
+ <description>
94
+ Description: Evaluation of an "fn:string-to-codepoints" with argument set to a single character ('1').
95
+ </description>
96
+ <created by="Carmelo Montanez" on="2005-11-23"/>
97
+ <test>fn:string-to-codepoints('1')</test>
98
+ <result>
99
+ <assert-eq>49</assert-eq>
100
+ </result>
101
+ </test-case>
102
+ <test-case name="fn-string-to-codepoints-2">
103
+ <description>
104
+ Description: Evaluation of an "fn:string-to-codepoints" with argument set to a single character ('a').
105
+ </description>
106
+ <created by="Carmelo Montanez" on="2005-11-23"/>
107
+ <test>fn:string-to-codepoints('a')</test>
108
+ <result>
109
+ <assert-eq>97</assert-eq>
110
+ </result>
111
+ </test-case>
112
+ <test-case name="fn-string-to-codepoints-3">
113
+ <description>
114
+ Description: Evaluation of an "fn:string-to-codepoints" with argument set to a combination of number/character ('1a').
115
+ </description>
116
+ <created by="Carmelo Montanez" on="2005-11-23"/>
117
+ <test>fn:string-to-codepoints('1a')</test>
118
+ <result>
119
+ <assert-deep-eq>49, 97</assert-deep-eq>
120
+ </result>
121
+ </test-case>
122
+ <test-case name="fn-string-to-codepoints-4">
123
+ <description>
124
+ Description: Evaluation of an "fn:string-to-codepoints" with argument set to the characters "#*^$".
125
+ </description>
126
+ <created by="Carmelo Montanez" on="2005-11-23"/>
127
+ <test>fn:string-to-codepoints('#*^$')</test>
128
+ <result>
129
+ <assert-deep-eq>35, 42, 94, 36</assert-deep-eq>
130
+ </result>
131
+ </test-case>
132
+ <test-case name="fn-string-to-codepoints-5">
133
+ <description>
134
+ Description: Evaluation of an "fn:string-to-codepoints" with argument set to "string-to-codepoints".
135
+ </description>
136
+ <created by="Carmelo Montanez" on="2005-11-23"/>
137
+ <test>fn:string-to-codepoints('string-to-codepoints')</test>
138
+ <result>
139
+ <assert-deep-eq>115, 116, 114, 105, 110, 103, 45, 116, 111, 45, 99, 111, 100, 101, 112, 111, 105, 110, 116, 115</assert-deep-eq>
140
+ </result>
141
+ </test-case>
142
+ <test-case name="fn-string-to-codepoints-6">
143
+ <description>
144
+ Description: Evaluation of an "fn:string-to-codepoints" with argument that uses "xs:string()" function .
145
+ </description>
146
+ <created by="Carmelo Montanez" on="2005-11-23"/>
147
+ <test>fn:string-to-codepoints(xs:string("A String"))</test>
148
+ <result>
149
+ <assert-deep-eq>65, 32, 83, 116, 114, 105, 110, 103</assert-deep-eq>
150
+ </result>
151
+ </test-case>
152
+ <test-case name="fn-string-to-codepoints-7">
153
+ <description>
154
+ Description: Evaluation of an "fn:string-to-codepoints" with argument that uses "fn:upper-case" function .
155
+ </description>
156
+ <created by="Carmelo Montanez" on="2005-11-23"/>
157
+ <test>fn:string-to-codepoints(fn:upper-case("A String"))</test>
158
+ <result>
159
+ <assert-deep-eq>(65, 32, 83, 84, 82, 73, 78, 71)</assert-deep-eq>
160
+ </result>
161
+ </test-case>
162
+ <test-case name="fn-string-to-codepoints-8">
163
+ <description>
164
+ Description: Evaluation of an "fn:string-to-codepoints" with argument that uses "fn:lower-case" function .
165
+ </description>
166
+ <created by="Carmelo Montanez" on="2005-11-23"/>
167
+ <test>fn:string-to-codepoints(fn:lower-case("A String"))</test>
168
+ <result>
169
+ <assert-deep-eq>(97, 32, 115, 116, 114, 105, 110, 103)</assert-deep-eq>
170
+ </result>
171
+ </test-case>
172
+ <test-case name="fn-string-to-codepoints-9">
173
+ <description>
174
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:count function .
175
+ </description>
176
+ <created by="Carmelo Montanez" on="2005-11-23"/>
177
+ <test>fn:count(fn:string-to-codepoints("A String"))</test>
178
+ <result>
179
+ <assert-eq>8</assert-eq>
180
+ </result>
181
+ </test-case>
182
+ <test-case name="fn-string-to-codepoints-10">
183
+ <description>
184
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:avg function .
185
+ </description>
186
+ <created by="Carmelo Montanez" on="2005-11-23"/>
187
+ <test>fn:avg(fn:string-to-codepoints("A String"))</test>
188
+ <result>
189
+ <assert-eq>91</assert-eq>
190
+ </result>
191
+ </test-case>
192
+ <test-case name="fn-string-to-codepoints-11">
193
+ <description>
194
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:empty function .
195
+ </description>
196
+ <created by="Carmelo Montanez" on="2005-11-23"/>
197
+ <test>fn:empty(fn:string-to-codepoints("A String"))</test>
198
+ <result>
199
+ <assert-false/>
200
+ </result>
201
+ </test-case>
202
+ <test-case name="fn-string-to-codepoints-12">
203
+ <description>
204
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:empty function.
205
+ </description>
206
+ <created by="Carmelo Montanez" on="2005-11-23"/>
207
+ <test>fn:empty(fn:string-to-codepoints(()))</test>
208
+ <result>
209
+ <assert-true/>
210
+ </result>
211
+ </test-case>
212
+ <test-case name="fn-string-to-codepoints-13">
213
+ <description>
214
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:exits function .
215
+ </description>
216
+ <created by="Carmelo Montanez" on="2005-11-23"/>
217
+ <test>fn:exists(fn:string-to-codepoints(()))</test>
218
+ <result>
219
+ <assert-false/>
220
+ </result>
221
+ </test-case>
222
+ <test-case name="fn-string-to-codepoints-14">
223
+ <description>
224
+ Description: Evaluation of an "fn:string-to-codepoints" that is used as argument to fn:empty function.
225
+ </description>
226
+ <created by="Carmelo Montanez" on="2005-11-23"/>
227
+ <test>fn:exists(fn:string-to-codepoints("A String"))</test>
228
+ <result>
229
+ <assert-true/>
230
+ </result>
231
+ </test-case>
232
+ <test-case name="fn-string-to-codepoints-15">
233
+ <description>
234
+ Evaluation of "fn:string-to-codepoints" with non-BMP characters
235
+ </description>
236
+ <created by="Michael Kay" on="2011-06-25"/>
237
+ <test>fn:deep-equal(fn:string-to-codepoints("&#x10001;&#x10002;"), (65537, 65538))</test>
238
+ <result>
239
+ <assert-true/>
240
+ </result>
241
+ </test-case>
242
+ <test-case name="K-StringToCodepointFunc-1">
243
+ <description>
244
+ Purpose: A test whose essence is: `string-to-codepoints()`.
245
+ </description>
246
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
247
+ <test>string-to-codepoints()</test>
248
+ <result>
249
+ <error code="XPST0017"/>
250
+ </result>
251
+ </test-case>
252
+ <test-case name="K-StringToCodepointFunc-2">
253
+ <description>
254
+ Purpose: A test whose essence is: `string-to-codepoints("str", "INVALID")`.
255
+ </description>
256
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
257
+ <test>string-to-codepoints("str", "INVALID")</test>
258
+ <result>
259
+ <error code="XPST0017"/>
260
+ </result>
261
+ </test-case>
262
+ <test-case name="K-StringToCodepointFunc-3">
263
+ <description>
264
+ Purpose: A test whose essence is: `empty(string-to-codepoints(()))`.
265
+ </description>
266
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
267
+ <test>empty(string-to-codepoints(()))</test>
268
+ <result>
269
+ <assert-true/>
270
+ </result>
271
+ </test-case>
272
+ <test-case name="K-StringToCodepointFunc-4">
273
+ <description>
274
+ Purpose: A test whose essence is: `empty(string-to-codepoints(""))`.
275
+ </description>
276
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
277
+ <test>empty(string-to-codepoints(""))</test>
278
+ <result>
279
+ <assert-true/>
280
+ </result>
281
+ </test-case>
282
+ <test-case name="K-StringToCodepointFunc-5">
283
+ <description>
284
+ Purpose: A test whose essence is: `count(string-to-codepoints("123")) eq 3`.
285
+ </description>
286
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
287
+ <test>count(string-to-codepoints("123")) eq 3</test>
288
+ <result>
289
+ <assert-true/>
290
+ </result>
291
+ </test-case>
292
+ <test-case name="K-StringToCodepointFunc-6">
293
+ <description>
294
+ Purpose: A test whose essence is: `count(string-to-codepoints("")) eq 0`.
295
+ </description>
296
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
297
+ <test>count(string-to-codepoints("")) eq 0</test>
298
+ <result>
299
+ <assert-true/>
300
+ </result>
301
+ </test-case>
302
+ <test-case name="K-StringToCodepointFunc-7">
303
+ <description>
304
+ Purpose: A test whose essence is: `empty(string-to-codepoints(""))`.
305
+ </description>
306
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
307
+ <test>empty(string-to-codepoints(""))</test>
308
+ <result>
309
+ <assert-true/>
310
+ </result>
311
+ </test-case>
312
+ <test-case name="K-StringToCodepointFunc-8">
313
+ <description>
314
+ Purpose: A test whose essence is: `string-to-codepoints("e")`.
315
+ </description>
316
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
317
+ <test>string-to-codepoints("e")</test>
318
+ <result>
319
+ <assert-eq>101</assert-eq>
320
+ </result>
321
+ </test-case>
322
+ <test-case name="K-StringToCodepointFunc-9">
323
+ <description>
324
+ Purpose: A test whose essence is: `deep-equal(string-to-codepoints("ee"), (101, 101))`.
325
+ </description>
326
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
327
+ <test>deep-equal(string-to-codepoints("ee"), (101, 101))</test>
328
+ <result>
329
+ <assert-true/>
330
+ </result>
331
+ </test-case>
332
+ <test-case name="K-StringToCodepointFunc-10">
333
+ <description>
334
+ Purpose: A test whose essence is: `deep-equal(string-to-codepoints("eee"), (101, 101, 101))`.
335
+ </description>
336
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
337
+ <test>deep-equal(string-to-codepoints("eee"), (101, 101, 101))</test>
338
+ <result>
339
+ <assert-true/>
340
+ </result>
341
+ </test-case>
342
+ <test-case name="K-StringToCodepointFunc-11">
343
+ <description>
344
+ Purpose: A test whose essence is: `string-join(for $code in string-to-codepoints("example.com/") return string($code), "") eq "10112097109112108101469911110947"`.
345
+ </description>
346
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
347
+ <test>string-join(for $code in string-to-codepoints("example.com/") return string($code), "") eq "10112097109112108101469911110947"</test>
348
+ <result>
349
+ <assert-true/>
350
+ </result>
351
+ </test-case>
352
+ <test-case name="K-StringToCodepointFunc-12">
353
+ <description>
354
+ Purpose: Combine fn:deep-equal and string-to-codepoints().
355
+ </description>
356
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
357
+ <test>deep-equal(string-to-codepoints("Thérèse"), (84, 104, 233, 114, 232, 115, 101))</test>
358
+ <result>
359
+ <assert-true/>
360
+ </result>
361
+ </test-case>
362
+ <test-case name="K-StringToCodepointFunc-13">
363
+ <description>
364
+ Purpose: A test whose essence is: `codepoints-to-string((87, 36, 56, 87, 102, 96)) eq "W$8Wf`"`.
365
+ </description>
366
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
367
+ <test>codepoints-to-string((87, 36, 56, 87, 102, 96)) eq "W$8Wf`"</test>
368
+ <result>
369
+ <assert-true/>
370
+ </result>
371
+ </test-case>
372
+ <test-case name="K-StringToCodepointFunc-14">
373
+ <description>
374
+ Purpose: Combine string-to-codepoints() and a predicate.
375
+ </description>
376
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
377
+ <test>string-to-codepoints("Thérèse")[last()]</test>
378
+ <result>
379
+ <assert-eq>101</assert-eq>
380
+ </result>
381
+ </test-case>
382
+ <test-case name="K-StringToCodepointFunc-15">
383
+ <description>
384
+ Purpose: Combine string-to-codepoints() and a predicate.
385
+ </description>
386
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
387
+ <test>string-to-codepoints("Thérèse")[0 + last()]</test>
388
+ <result>
389
+ <assert-eq>101</assert-eq>
390
+ </result>
391
+ </test-case>
392
+ <test-case name="K-StringToCodepointFunc-16">
393
+ <description>
394
+ Purpose: Combine string-to-codepoints() and a predicate.
395
+ </description>
396
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
397
+ <test>string-to-codepoints("Thérèse")[last() - 1]</test>
398
+ <result>
399
+ <assert-eq>115</assert-eq>
400
+ </result>
401
+ </test-case>
402
+ <test-case name="K-StringToCodepointFunc-17">
403
+ <description>
404
+ Purpose: Combine string-to-codepoints() and a predicate.
405
+ </description>
406
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
407
+ <test>string-to-codepoints("Thérèse")[last() - 0]</test>
408
+ <result>
409
+ <assert-eq>101</assert-eq>
410
+ </result>
411
+ </test-case>
412
+ <test-case name="K-StringToCodepointFunc-18">
413
+ <description>
414
+ Purpose: Combine string-to-codepoints() and a predicate.
415
+ </description>
416
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
417
+ <test>string-to-codepoints("Thérèse")[0 + last()]</test>
418
+ <result>
419
+ <assert-eq>101</assert-eq>
420
+ </result>
421
+ </test-case>
422
+ <test-case name="K-StringToCodepointFunc-19">
423
+ <description>
424
+ Purpose: Combine string-to-codepoints() and a predicate.
425
+ </description>
426
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
427
+ <test>string-to-codepoints("Thérèse")[last() - 2]</test>
428
+ <result>
429
+ <assert-eq>232</assert-eq>
430
+ </result>
431
+ </test-case>
432
+ <test-case name="K-StringToCodepointFunc-20">
433
+ <description>
434
+ Purpose: Combine string-to-codepoints() and a predicate.
435
+ </description>
436
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
437
+ <test>empty(string-to-codepoints("Thérèse")[last() - 7])</test>
438
+ <result>
439
+ <assert-true/>
440
+ </result>
441
+ </test-case>
442
+ <test-case name="K-StringToCodepointFunc-21">
443
+ <description>
444
+ Purpose: Combine string-to-codepoints() and a predicate.
445
+ </description>
446
+ <created by="Frans Englich" on="2007-11-26+01:00"/>
447
+ <test>string-to-codepoints("Thérèse")[last() - 6]</test>
448
+ <result>
449
+ <assert-eq>84</assert-eq>
450
+ </result>
451
+ </test-case>
452
+ </test-set>