leptris 1.9.231.1-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 +35 -4
  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,399 @@
1
+ <?xml version="1.0" encoding="us-ascii"?>
2
+ <test-set xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="fn-insert-before">
3
+ <description>Tests for the insert-before() function</description>
4
+ <link type="spec" document="http://www.w3.org/TR/xpath-functions-30/"
5
+ idref="func-insert-before"/>
6
+
7
+ <test-case name="fn-insert-before-mix-args-001">
8
+ <description> arg1: Sequence of string, arg2:integer, arg3: string </description>
9
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
10
+ <test>fn:insert-before( ("a", "b", "c"),1, "z")</test>
11
+ <result>
12
+ <assert-deep-eq>"z", "a", "b", "c"</assert-deep-eq>
13
+ </result>
14
+ </test-case>
15
+
16
+ <test-case name="fn-insert-before-mix-args-002">
17
+ <description> arg1: Sequence of string, arg2:integer, arg3: empty sequence </description>
18
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
19
+ <test>fn:insert-before( ("a", "b", "c"),0, ())</test>
20
+ <result>
21
+ <assert-deep-eq>"a", "b", "c"</assert-deep-eq>
22
+ </result>
23
+ </test-case>
24
+
25
+ <test-case name="fn-insert-before-mix-args-003">
26
+ <description> arg1: Sequence of string, arg2:integer, arg3: empty sequence </description>
27
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
28
+ <test>fn:insert-before( ("a", "b", "c"),2, ())</test>
29
+ <result>
30
+ <assert-deep-eq>"a", "b", "c"</assert-deep-eq>
31
+ </result>
32
+ </test-case>
33
+
34
+ <test-case name="fn-insert-before-mix-args-004">
35
+ <description> arg1: Sequence of string, arg2:integer, arg3: string </description>
36
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
37
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:string(" "))</test>
38
+ <result>
39
+ <assert-deep-eq>"a", " ", "b", "c"</assert-deep-eq>
40
+ </result>
41
+ </test-case>
42
+
43
+ <test-case name="fn-insert-before-mix-args-005">
44
+ <description> arg1: Sequence of string, arg2:integer, arg3: anyURI </description>
45
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
46
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:anyURI("www.example.com"))</test>
47
+ <result>
48
+ <assert-deep-eq>"a", "www.example.com", "b", "c"</assert-deep-eq>
49
+ </result>
50
+ </test-case>
51
+
52
+ <test-case name="fn-insert-before-mix-args-006">
53
+ <description> arg1: Sequence of string, arg2:integer, arg3: integer </description>
54
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
55
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:integer("100"))</test>
56
+ <result>
57
+ <assert-deep-eq>"a", 100, "b", "c"</assert-deep-eq>
58
+ </result>
59
+ </test-case>
60
+
61
+ <test-case name="fn-insert-before-mix-args-007">
62
+ <description> arg1: Sequence of string, arg2:integer, arg3: decimal </description>
63
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
64
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:decimal("1.1"))</test>
65
+ <result>
66
+ <assert-deep-eq>"a", 1.1, "b", "c"</assert-deep-eq>
67
+ </result>
68
+ </test-case>
69
+
70
+ <test-case name="fn-insert-before-mix-args-008">
71
+ <description> arg1: Sequence of string, arg2:integer, arg3: float </description>
72
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
73
+ <modified by="Pulkita Tyagi" on="2025-10-02" change="more precise expected result"/>
74
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:float("1.1"))</test>
75
+ <result>
76
+ <assert-deep-eq>"a", xs:float(1.1), "b", "c"</assert-deep-eq>
77
+ </result>
78
+ </test-case>
79
+
80
+ <test-case name="fn-insert-before-mix-args-009">
81
+ <description> arg1: Sequence of string, arg2:integer, arg3: float </description>
82
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
83
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:float("NaN"))</test>
84
+ <result>
85
+ <assert-deep-eq>"a", xs:float('NaN'), "b", "c"</assert-deep-eq>
86
+ </result>
87
+ </test-case>
88
+
89
+ <test-case name="fn-insert-before-mix-args-010">
90
+ <description> arg1: Sequence of string, arg2:integer, arg3: float </description>
91
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
92
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:float("-0"))</test>
93
+ <result>
94
+ <assert-deep-eq>"a", 0, "b", "c"</assert-deep-eq>
95
+ </result>
96
+ </test-case>
97
+
98
+ <test-case name="fn-insert-before-mix-args-011">
99
+ <description> arg1: Sequence of string, arg2:integer, arg3: float </description>
100
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
101
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:float("-INF"))</test>
102
+ <result>
103
+ <assert-deep-eq>"a", xs:float('-INF'), "b", "c"</assert-deep-eq>
104
+ </result>
105
+ </test-case>
106
+
107
+ <test-case name="fn-insert-before-mix-args-012">
108
+ <description> arg1: Sequence of string, arg2:integer, arg3: double </description>
109
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
110
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:double("NaN"))</test>
111
+ <result>
112
+ <assert-deep-eq>"a", xs:double('NaN'), "b", "c"</assert-deep-eq>
113
+ </result>
114
+ </test-case>
115
+
116
+ <test-case name="fn-insert-before-mix-args-013">
117
+ <description> arg1: Sequence of string, arg2:integer, arg3: double </description>
118
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
119
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:double("INF"))</test>
120
+ <result>
121
+ <assert-deep-eq>"a", xs:double('INF'), "b", "c"</assert-deep-eq>
122
+ </result>
123
+ </test-case>
124
+
125
+ <test-case name="fn-insert-before-mix-args-014">
126
+ <description> arg1: Sequence of string, arg2:integer, arg3: boolean </description>
127
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
128
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:boolean("1"))</test>
129
+ <result>
130
+ <assert-deep-eq>"a", true(), "b", "c"</assert-deep-eq>
131
+ </result>
132
+ </test-case>
133
+
134
+ <test-case name="fn-insert-before-mix-args-015">
135
+ <description> arg1: Sequence of string, arg2:integer, arg3: boolean </description>
136
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
137
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:boolean("0"))</test>
138
+ <result>
139
+ <assert-deep-eq>"a", false(), "b", "c"</assert-deep-eq>
140
+ </result>
141
+ </test-case>
142
+
143
+ <test-case name="fn-insert-before-mix-args-016">
144
+ <description> arg1: Sequence of string, arg2:integer, arg3: boolean </description>
145
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
146
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:boolean("true"))</test>
147
+ <result>
148
+ <assert-deep-eq>"a", true(), "b", "c"</assert-deep-eq>
149
+ </result>
150
+ </test-case>
151
+
152
+ <test-case name="fn-insert-before-mix-args-017">
153
+ <description> arg1: Sequence of string, arg2:integer, arg3: boolean </description>
154
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
155
+ <test>fn:insert-before( ("a", "b", "c"),2, xs:boolean("false"))</test>
156
+ <result>
157
+ <assert-deep-eq>"a", false(), "b", "c"</assert-deep-eq>
158
+ </result>
159
+ </test-case>
160
+
161
+ <test-case name="fn-insert-before-mix-args-018">
162
+ <description> arg1: Sequence of string, arg2:integer, arg3: date </description>
163
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
164
+ <test>fn:insert-before( ("a", "b", "c"),4, xs:date("1993-03-31"))</test>
165
+ <result>
166
+ <assert-deep-eq>"a", "b", "c", xs:date('1993-03-31')</assert-deep-eq>
167
+ </result>
168
+ </test-case>
169
+
170
+ <test-case name="fn-insert-before-mix-args-019">
171
+ <description> arg1: Sequence of string, arg2:integer, arg3: dateTime </description>
172
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
173
+ <test>fn:insert-before( ("a", "b", "c"),4, xs:dateTime("1972-12-31T00:00:00"))</test>
174
+ <result>
175
+ <assert-deep-eq>"a", "b", "c", xs:dateTime('1972-12-31T00:00:00')</assert-deep-eq>
176
+ </result>
177
+ </test-case>
178
+
179
+ <test-case name="fn-insert-before-mix-args-020">
180
+ <description> arg1: Sequence of string, arg2:integer, arg3: time </description>
181
+ <created by="Pulkita Tyagi" on="2005-05-25"/>
182
+ <test>fn:insert-before( ("a", "b", "c"),4, xs:time("12:30:00"))</test>
183
+ <result>
184
+ <assert-deep-eq>"a", "b", "c", xs:time('12:30:00')</assert-deep-eq>
185
+ </result>
186
+ </test-case>
187
+
188
+ <test-case name="K-SeqInsertBeforeFunc-1">
189
+ <description> A test whose essence is: `insert-before()`. </description>
190
+ <created by="Frans Englich" on="2007-11-26"/>
191
+ <test>insert-before()</test>
192
+ <result>
193
+ <error code="XPST0017"/>
194
+ </result>
195
+ </test-case>
196
+
197
+ <test-case name="K-SeqInsertBeforeFunc-2">
198
+ <description> A test whose essence is: `insert-before("wrong params", 2)`. </description>
199
+ <created by="Frans Englich" on="2007-11-26"/>
200
+ <test>insert-before("wrong params", 2)</test>
201
+ <result>
202
+ <error code="XPST0017"/>
203
+ </result>
204
+ </test-case>
205
+
206
+ <test-case name="K-SeqInsertBeforeFunc-3">
207
+ <description> A test whose essence is: `insert-before("wrong params", 2, 3, 4)`. </description>
208
+ <created by="Frans Englich" on="2007-11-26"/>
209
+ <test>insert-before("wrong params", 2, 3, 4)</test>
210
+ <result>
211
+ <error code="XPST0017"/>
212
+ </result>
213
+ </test-case>
214
+
215
+ <test-case name="K-SeqInsertBeforeFunc-4">
216
+ <description> The second argument to fn:insert-before cannot be the empty sequence. </description>
217
+ <created by="Frans Englich" on="2007-11-26"/>
218
+ <test>insert-before((), (), "a string")</test>
219
+ <result>
220
+ <error code="XPTY0004"/>
221
+ </result>
222
+ </test-case>
223
+
224
+ <test-case name="K-SeqInsertBeforeFunc-5">
225
+ <description> A test whose essence is: `insert-before((), -31, "a string") eq "a string"`. </description>
226
+ <created by="Frans Englich" on="2007-11-26"/>
227
+ <test>insert-before((), -31, "a string") eq "a string"</test>
228
+ <result>
229
+ <assert-true/>
230
+ </result>
231
+ </test-case>
232
+
233
+ <test-case name="K-SeqInsertBeforeFunc-6">
234
+ <description> A test whose essence is: `count(insert-before((1, 2, 3), 1, (4, 5, 6))) eq 6`. </description>
235
+ <created by="Frans Englich" on="2007-11-26"/>
236
+ <test>count(insert-before((1, 2, 3), 1, (4, 5, 6))) eq 6</test>
237
+ <result>
238
+ <assert-true/>
239
+ </result>
240
+ </test-case>
241
+
242
+ <test-case name="K-SeqInsertBeforeFunc-7">
243
+ <description> A test whose essence is: `insert-before((), 1, 3) eq 3`. </description>
244
+ <created by="Frans Englich" on="2007-11-26"/>
245
+ <test>insert-before((), 1, 3) eq 3</test>
246
+ <result>
247
+ <assert-true/>
248
+ </result>
249
+ </test-case>
250
+
251
+ <test-case name="K-SeqInsertBeforeFunc-8">
252
+ <description> A test whose essence is: `insert-before((), 1, "a string") eq "a string"`. </description>
253
+ <created by="Frans Englich" on="2007-11-26"/>
254
+ <test>insert-before((), 1, "a string") eq "a string"</test>
255
+ <result>
256
+ <assert-true/>
257
+ </result>
258
+ </test-case>
259
+
260
+ <test-case name="K-SeqInsertBeforeFunc-9">
261
+ <description> A test whose essence is: `count(insert-before((), 1, (1, 2, 3))) eq 3`. </description>
262
+ <created by="Frans Englich" on="2007-11-26"/>
263
+ <test>count(insert-before((), 1, (1, 2, 3))) eq 3</test>
264
+ <result>
265
+ <assert-true/>
266
+ </result>
267
+ </test-case>
268
+
269
+ <test-case name="K-SeqInsertBeforeFunc-10">
270
+ <description> A test whose essence is: `insert-before((), 30, 7) eq 7`. </description>
271
+ <created by="Frans Englich" on="2007-11-26"/>
272
+ <test>insert-before((), 30, 7) eq 7</test>
273
+ <result>
274
+ <assert-true/>
275
+ </result>
276
+ </test-case>
277
+
278
+ <test-case name="K-SeqInsertBeforeFunc-11">
279
+ <description> A test whose essence is: `count(insert-before((1, 2, 3, 4), 30, ())) eq 4`. </description>
280
+ <created by="Frans Englich" on="2007-11-26"/>
281
+ <test>count(insert-before((1, 2, 3, 4), 30, ())) eq 4</test>
282
+ <result>
283
+ <assert-true/>
284
+ </result>
285
+ </test-case>
286
+
287
+ <test-case name="K-SeqInsertBeforeFunc-12">
288
+ <description> A test whose essence is: `insert-before(9, 30, ()) eq 9`. </description>
289
+ <created by="Frans Englich" on="2007-11-26"/>
290
+ <test>insert-before(9, 30, ()) eq 9</test>
291
+ <result>
292
+ <assert-true/>
293
+ </result>
294
+ </test-case>
295
+
296
+ <test-case name="K-SeqInsertBeforeFunc-13">
297
+ <description> A test whose essence is: `count(insert-before((1, 2, 3, 4), 1, ())) eq 4`. </description>
298
+ <created by="Frans Englich" on="2007-11-26"/>
299
+ <test>count(insert-before((1, 2, 3, 4), 1, ())) eq 4</test>
300
+ <result>
301
+ <assert-true/>
302
+ </result>
303
+ </test-case>
304
+
305
+ <test-case name="K-SeqInsertBeforeFunc-14">
306
+ <description> A test whose essence is: `count(insert-before((1, 2, 3), 30, (4, 5, 6))) eq 6`. </description>
307
+ <created by="Frans Englich" on="2007-11-26"/>
308
+ <test>count(insert-before((1, 2, 3), 30, (4, 5, 6))) eq 6</test>
309
+ <result>
310
+ <assert-true/>
311
+ </result>
312
+ </test-case>
313
+
314
+ <test-case name="K-SeqInsertBeforeFunc-15">
315
+ <description> A test whose essence is: `count(insert-before((), 30, (1, 2, 3))) eq 3`. </description>
316
+ <created by="Frans Englich" on="2007-11-26"/>
317
+ <test>count(insert-before((), 30, (1, 2, 3))) eq 3</test>
318
+ <result>
319
+ <assert-true/>
320
+ </result>
321
+ </test-case>
322
+
323
+ <test-case name="K-SeqInsertBeforeFunc-16">
324
+ <description> A test whose essence is: `count(insert-before((error(), 1), 1, (1, "two", 3))) &gt; 1`. </description>
325
+ <created by="Frans Englich" on="2007-11-26"/>
326
+ <test>count(insert-before((error(), 1), 1, (1, "two", 3))) &gt; 1</test>
327
+ <result>
328
+ <any-of>
329
+ <assert-true/>
330
+ <error code="FOER0000"/>
331
+ </any-of>
332
+ </result>
333
+ </test-case>
334
+
335
+ <test-case name="K-SeqInsertBeforeFunc-17">
336
+ <description> Apply a predicate to the result of fn:insert-before(). </description>
337
+ <created by="Frans Englich" on="2007-11-26"/>
338
+ <test>(insert-before((1, current-time(), 3), 1, (4, 5, 6))[last()] treat as xs:integer) eq 3</test>
339
+ <result>
340
+ <assert-true/>
341
+ </result>
342
+ </test-case>
343
+
344
+ <test-case name="K-SeqInsertBeforeFunc-18">
345
+ <description> Apply a predicate to the result of fn:insert-before(). </description>
346
+ <created by="Frans Englich" on="2007-11-26"/>
347
+ <test>(insert-before((1, current-time(), 3), 10, (4, 5, 6))[last()] treat as xs:integer) eq 6</test>
348
+ <result>
349
+ <assert-true/>
350
+ </result>
351
+ </test-case>
352
+
353
+ <test-case name="K-SeqInsertBeforeFunc-19">
354
+ <description> Apply a predicate to the result of fn:insert-before(). </description>
355
+ <created by="Frans Englich" on="2007-11-26"/>
356
+ <test>(insert-before((1, current-time(), 3), 10, (4, 5, 6))[last() - 3] treat as xs:integer) eq 3</test>
357
+ <result>
358
+ <assert-true/>
359
+ </result>
360
+ </test-case>
361
+
362
+ <test-case name="K-SeqInsertBeforeFunc-20">
363
+ <description> Apply a predicate to the result of fn:insert-before(). </description>
364
+ <created by="Frans Englich" on="2007-11-26"/>
365
+ <test>(insert-before((1, current-time(), 3), 10, ())[last()] treat as xs:integer) eq 3</test>
366
+ <result>
367
+ <assert-true/>
368
+ </result>
369
+ </test-case>
370
+
371
+ <test-case name="K-SeqInsertBeforeFunc-21">
372
+ <description> Apply a predicate to the result of fn:insert-before(). </description>
373
+ <created by="Frans Englich" on="2007-11-26"/>
374
+ <test>empty(insert-before((1, current-time(), 3), 0, (4, 5, 6))[last() - 10])</test>
375
+ <result>
376
+ <assert-true/>
377
+ </result>
378
+ </test-case>
379
+
380
+ <test-case name="cbcl-fn-insert-before-001">
381
+ <description> tests insert-before at known positions </description>
382
+ <created by="Nick Jones" on="2008-06-13"/>
383
+ <test>insert-before(1 to 10,5,20 to 30)</test>
384
+ <result>
385
+ <assert-string-value>1 2 3 4 20 21 22 23 24 25 26 27 28 29 30 5 6 7 8 9 10</assert-string-value>
386
+ </result>
387
+ </test-case>
388
+
389
+ <test-case name="cbcl-fn-insert-before-002">
390
+ <description> Tests insert-before for known positions </description>
391
+ <created by="Nick Jones" on="2008-06-13"/>
392
+ <test>
393
+ insert-before((1 to 10,(20 to 30)[. mod 2 = 0],30 to 40),12,"blah")
394
+ </test>
395
+ <result>
396
+ <assert-string-value>1 2 3 4 5 6 7 8 9 10 20 blah 22 24 26 28 30 30 31 32 33 34 35 36 37 38 39 40</assert-string-value>
397
+ </result>
398
+ </test-case>
399
+ </test-set>