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,808 @@
1
+ <?xml version="1.0" encoding="us-ascii"?>
2
+ <test-set xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="fn-codepoints-to-string">
3
+ <description/>
4
+ <link type="spec" document="http://www.w3.org/TR/xpath-functions-11/"
5
+ idref="func-codepoints-to-string"/>
6
+
7
+ <test-case name="fn-codepoints-to-string1args-1">
8
+ <description>Test codepoints-to-string with variety of characters </description>
9
+ <created by="Joanne Tong" on="2005-09-23"/>
10
+ <test>codepoints-to-string((98,223,1682,12365,63744))</test>
11
+ <result>
12
+ <assert-string-value>b&#223;&#1682;&#12365;&#63744;</assert-string-value>
13
+ </result>
14
+ </test-case>
15
+
16
+ <test-case name="fn-codepoints-to-string1args-2">
17
+ <description>Test codepoints-to-string with an empty sequence argument </description>
18
+ <created by="Joanne Tong" on="2005-09-23"/>
19
+ <test>codepoints-to-string(())</test>
20
+ <result>
21
+ <assert-string-value/>
22
+ </result>
23
+ </test-case>
24
+
25
+ <test-case name="fn-codepoints-to-string1args-3">
26
+ <description>Test invalid type in argument for codepoints-to-string </description>
27
+ <created by="Joanne Tong" on="2005-09-23"/>
28
+ <test>codepoints-to-string('hello')</test>
29
+ <result>
30
+ <error code="XPTY0004"/>
31
+ </result>
32
+ </test-case>
33
+
34
+ <test-case name="fn-codepoints-to-string1args-4">
35
+ <description>Test incorrect arity for codepoints-to-string </description>
36
+ <created by="Joanne Tong" on="2005-09-23"/>
37
+ <dependency type="spec" value="XP20 XP30 XP31 XQ10 XQ30 XQ31"/>
38
+ <test>codepoints-to-string((),())</test>
39
+ <result>
40
+ <error code="XPST0017"/>
41
+ </result>
42
+ </test-case>
43
+
44
+ <test-case name="fn-codepoints-to-string-1">
45
+ <description> Invalid XML character codepoint as part of "code-points-to-string" function. </description>
46
+ <created by="Carmelo Montanez" on="2005-10-04"/>
47
+ <test>fn:codepoints-to-string(0)</test>
48
+ <result>
49
+ <error code="FOCH0001"/>
50
+ </result>
51
+ </test-case>
52
+
53
+ <test-case name="fn-codepoints-to-string-2">
54
+ <description> Invalid XML character codepoint as part of "code-points-to-string" function. </description>
55
+ <created by="Carmelo Montanez" on="2005-10-24"/>
56
+ <test>fn:codepoints-to-string(10000000)</test>
57
+ <result>
58
+ <error code="FOCH0001"/>
59
+ </result>
60
+ </test-case>
61
+
62
+ <test-case name="fn-codepoints-to-string-3">
63
+ <description> Evaluation of an "fn:codepoints-to-string" with argument set to codepoint 49 (single character ('1')). </description>
64
+ <created by="Carmelo Montanez" on="2005-11-23"/>
65
+ <test>fn:codepoints-to-string(49)</test>
66
+ <result>
67
+ <assert-string-value>1</assert-string-value>
68
+ </result>
69
+ </test-case>
70
+
71
+ <test-case name="fn-codepoints-to-string-4">
72
+ <description> Evaluation of an "fn-codepoints-to-string" with argument set to codepoint 97 (a single character 'a'). </description>
73
+ <created by="Carmelo Montanez" on="2005-11-23"/>
74
+ <test>fn:codepoints-to-string(97)</test>
75
+ <result>
76
+ <assert-string-value>a</assert-string-value>
77
+ </result>
78
+ </test-case>
79
+
80
+ <test-case name="fn-codepoints-to-string-5">
81
+ <description> Evaluation of an "fn:codepoints-to-string" with argument set to codepoints 49, 97 (combination of number/character '1a'). </description>
82
+ <created by="Carmelo Montanez" on="2005-11-23"/>
83
+ <test>fn:codepoints-to-string((49,97))</test>
84
+ <result>
85
+ <assert-string-value>1a</assert-string-value>
86
+ </result>
87
+ </test-case>
88
+
89
+ <test-case name="fn-codepoints-to-string-6">
90
+ <description> Evaluation of an "fn:codepoints-to-string" with argument set to the codepoints 35, 42, 94 36 (characters "#*^$"). </description>
91
+ <created by="Carmelo Montanez" on="2005-11-23"/>
92
+ <test>fn:codepoints-to-string((35, 42, 94, 36))</test>
93
+ <result>
94
+ <assert-string-value>#*^$</assert-string-value>
95
+ </result>
96
+ </test-case>
97
+
98
+ <test-case name="fn-codepoints-to-string-7">
99
+ <description> Evaluation of an "fn:codepoints-to-string" with argument set to codepoints
100
+ 99 111 100 101 112 111 105 110 116 115 45 116 111 45 115 116 114 105 110 103 (string "codepoints-to-string"). </description>
101
+ <created by="Carmelo Montanez" on="2005-11-23"/>
102
+ <test>fn:codepoints-to-string((99,111,100,101,112,111,105,110,116,115,45,116,111,45,115,116,114,105,110,103))</test>
103
+ <result>
104
+ <assert-string-value>codepoints-to-string</assert-string-value>
105
+ </result>
106
+ </test-case>
107
+
108
+ <test-case name="fn-codepoints-to-string-8">
109
+ <description> Evaluation of an "fn:codepoints-to-string" used as argument to "xs:string()" function and uses
110
+ codepoints 65, 32, 83 116, 114, 105, 110, 103 ("A String") . </description>
111
+ <created by="Carmelo Montanez" on="2005-11-23"/>
112
+ <test>xs:string(fn:codepoints-to-string((65,32,83,116,114,105,110,103)))</test>
113
+ <result>
114
+ <assert-string-value>A String</assert-string-value>
115
+ </result>
116
+ </test-case>
117
+
118
+ <test-case name="fn-codepoints-to-string-9">
119
+ <description> Evaluation of an "fn:codepoints-to-string" used as argument to the "fn:upper-case" function and use
120
+ codepoints 65,32,83,84,82,73,78,71 (string "A STRING"). </description>
121
+ <created by="Carmelo Montanez" on="2005-11-23"/>
122
+ <test>fn:upper-case(fn:codepoints-to-string((65,32,83,84,82,73,78,71)))</test>
123
+ <result>
124
+ <assert-string-value>A STRING</assert-string-value>
125
+ </result>
126
+ </test-case>
127
+
128
+ <test-case name="fn-codepoints-to-string-10">
129
+ <description> Evaluation of an "fn:codepoints-to-string" used as argument to the "fn:lower-case" function and use
130
+ codepoints 97,32,115,116,114,105,110,103 (String "a string"). </description>
131
+ <created by="Carmelo Montanez" on="2005-11-23"/>
132
+ <test>fn:lower-case(fn:codepoints-to-string((97,32,115,116,114,105,110,103)))</test>
133
+ <result>
134
+ <assert-string-value>a string</assert-string-value>
135
+ </result>
136
+ </test-case>
137
+
138
+ <test-case name="fn-codepoints-to-string-11">
139
+ <description> Evaluation of an "fn:codepoints-to-string" that uses xs:integer as argument and codepoints 97. </description>
140
+ <created by="Carmelo Montanez" on="2005-11-23"/>
141
+ <test>fn:codepoints-to-string(xs:integer(97))</test>
142
+ <result>
143
+ <assert-string-value>a</assert-string-value>
144
+ </result>
145
+ </test-case>
146
+
147
+ <test-case name="fn-codepoints-to-string-12">
148
+ <description> Evaluation of an "fn:codepoints-to-string" that uses fn:avg/xs:integer function and codepoints 65,32,83,116,114,105,110,103. </description>
149
+ <created by="Carmelo Montanez" on="2005-11-23"/>
150
+ <test>fn:codepoints-to-string(xs:integer(fn:avg((65,32,83,116,114,105,110,103))))</test>
151
+ <result>
152
+ <assert-string-value>[</assert-string-value>
153
+ </result>
154
+ </test-case>
155
+
156
+ <test-case name="fn-codepoints-to-string-13">
157
+ <description> Evaluation of an "fn:codepoints-to-string" that is used as argument to fn:concat function. </description>
158
+ <created by="Carmelo Montanez" on="2005-11-23"/>
159
+ <test>fn:concat(fn:codepoints-to-string((49,97)),"1a")</test>
160
+ <result>
161
+ <assert-string-value>1a1a</assert-string-value>
162
+ </result>
163
+ </test-case>
164
+
165
+ <test-case name="fn-codepoints-to-string-14">
166
+ <description> Evaluation of an "fn:codepoints-to-string" that is used as argument to fn:string-to-codepoints function. </description>
167
+ <created by="Carmelo Montanez" on="2005-11-23"/>
168
+ <test>fn:string-to-codepoints(fn:codepoints-to-string((49,97)))</test>
169
+ <result>
170
+ <assert-deep-eq>49, 97</assert-deep-eq>
171
+ </result>
172
+ </test-case>
173
+
174
+ <test-case name="fn-codepoints-to-string-15">
175
+ <description> Evaluation of an "fn:codepoints-to-string" that is used as argument to fn:string-length function. </description>
176
+ <created by="Carmelo Montanez" on="2005-11-23"/>
177
+ <test>fn:string-length(fn:codepoints-to-string((49,97)))</test>
178
+ <result>
179
+ <assert-eq>2</assert-eq>
180
+ </result>
181
+ </test-case>
182
+
183
+ <test-case name="fn-codepoints-to-string-16">
184
+ <description> Evaluation of an "fn:codepoints-to-string" that is used as argument to fn:string-join function. </description>
185
+ <created by="Carmelo Montanez" on="2005-11-25"/>
186
+ <test>fn:string-join((fn:codepoints-to-string((49,97)),'ab'),'')</test>
187
+ <result>
188
+ <assert-string-value>1aab</assert-string-value>
189
+ </result>
190
+ </test-case>
191
+
192
+ <test-case name="K-CodepointToStringFunc-1">
193
+ <description> A test whose essence is: `codepoints-to-string()`. </description>
194
+ <created by="Frans Englich" on="2007-11-26"/>
195
+ <dependency type="spec" value="XP20 XP30 XP31 XQ10 XQ30 XQ31"/>
196
+ <test>codepoints-to-string()</test>
197
+ <result>
198
+ <error code="XPST0017"/>
199
+ </result>
200
+ </test-case>
201
+
202
+ <test-case name="K-CodepointToStringFunc-2">
203
+ <description> A test whose essence is: `codepoints-to-string((84, 104), "INVALID")`. </description>
204
+ <created by="Frans Englich" on="2007-11-26"/>
205
+ <modified by="Michael Kay" on="2020-12-15" change="Error code changes in 4.0"/>
206
+ <test>codepoints-to-string((84, 104), "INVALID")</test>
207
+ <result>
208
+ <error code="XPST0017"/>
209
+ </result>
210
+ </test-case>
211
+
212
+ <test-case name="K-CodepointToStringFunc-3">
213
+ <description> A test whose essence is: `codepoints-to-string(()) eq ""`. </description>
214
+ <created by="Frans Englich" on="2007-11-26"/>
215
+ <test>codepoints-to-string(()) eq ""</test>
216
+ <result>
217
+ <assert-true/>
218
+ </result>
219
+ </test-case>
220
+
221
+ <test-case name="K-CodepointToStringFunc-4">
222
+ <description> A test whose essence is: `codepoints-to-string((87, 36, 56, 87, 102, 96)) eq "W$8Wf`"`. </description>
223
+ <created by="Frans Englich" on="2007-11-26"/>
224
+ <test>codepoints-to-string((87, 36, 56, 87, 102, 96)) eq "W$8Wf`"</test>
225
+ <result>
226
+ <assert-true/>
227
+ </result>
228
+ </test-case>
229
+
230
+ <test-case name="K-CodepointToStringFunc-5">
231
+ <description> A test whose essence is: `codepoints-to-string(57343)`. </description>
232
+ <created by="Frans Englich" on="2007-11-26"/>
233
+ <test>codepoints-to-string(57343)</test>
234
+ <result>
235
+ <error code="FOCH0001"/>
236
+ </result>
237
+ </test-case>
238
+
239
+ <test-case name="K-CodepointToStringFunc-6">
240
+ <description> A test whose essence is: `codepoints-to-string(-500)`. </description>
241
+ <created by="Frans Englich" on="2007-11-26"/>
242
+ <test>codepoints-to-string(-500)</test>
243
+ <result>
244
+ <error code="FOCH0001"/>
245
+ </result>
246
+ </test-case>
247
+
248
+ <test-case name="K-CodepointToStringFunc-7">
249
+ <description> A test whose essence is: `codepoints-to-string(0)`. </description>
250
+ <created by="Frans Englich" on="2007-11-26"/>
251
+ <test>codepoints-to-string(0)</test>
252
+ <result>
253
+ <error code="FOCH0001"/>
254
+ </result>
255
+ </test-case>
256
+
257
+ <test-case name="K-CodepointToStringFunc-8">
258
+ <description> Codepoint 8 is invalid in XML 1.0 but valid in XML 1.1. </description>
259
+ <created by="Frans Englich" on="2007-11-26"/>
260
+ <modified by="O'Neil Delpratt" on="2016-04-19" change="Added XML 1.0 dependency" />
261
+ <dependency type="xml-version" value="1.0" />
262
+ <test>codepoints-to-string(8)</test>
263
+ <result>
264
+ <any-of>
265
+ <error code="FOCH0001"/>
266
+ </any-of>
267
+ </result>
268
+ </test-case>
269
+
270
+ <test-case name="K-CodepointToStringFunc-8a">
271
+ <description>Codepoint 8 is invalid in XML 1.0 but valid in XML 1.1. Test created according to bug issue 29405</description>
272
+ <created by="Frans Englich" on="2007-11-26"/>
273
+ <modified by="Tim Mills" on="2016-04-28" change="See bug 29405" />
274
+ <modified by="Josh Spiegel" on="2016-04-28" change="See bug 29405" />
275
+ <dependency type="xml-version" value="1.1" />
276
+ <test>codepoints-to-string(8)</test>
277
+ <result>
278
+ <assert>string-to-codepoints($result) eq 8</assert>
279
+ </result>
280
+ </test-case>
281
+
282
+ <test-case name="K-CodepointToStringFunc-9">
283
+ <description> A test whose essence is: `codepoints-to-string(9) eq "&amp;#x9;"`. </description>
284
+ <created by="Frans Englich" on="2007-11-26"/>
285
+ <test>codepoints-to-string(9) eq " "</test>
286
+ <result>
287
+ <assert-true/>
288
+ </result>
289
+ </test-case>
290
+
291
+ <test-case name="K-CodepointToStringFunc-10">
292
+ <description> A test whose essence is: `codepoints-to-string(10) eq "&amp;#xA;"`. </description>
293
+ <created by="Frans Englich" on="2007-11-26"/>
294
+ <test>codepoints-to-string(10) eq "
295
+ "</test>
296
+ <result>
297
+ <assert-true/>
298
+ </result>
299
+ </test-case>
300
+
301
+ <test-case name="K-CodepointToStringFunc-11">
302
+ <description> Codepoint 11 is invalid in XML 1.0 but valid in XML 1.1. </description>
303
+ <created by="Frans Englich" on="2007-11-26"/>
304
+ <dependency type="xml-version" value="1.0"/>
305
+ <test>codepoints-to-string(11)</test>
306
+ <result>
307
+ <error code="FOCH0001"/>
308
+ </result>
309
+ </test-case>
310
+
311
+ <test-case name="K-CodepointToStringFunc-11b">
312
+ <description> Codepoint 11 is invalid in XML 1.0 but valid in XML 1.1. </description>
313
+ <created by="Frans Englich" on="2007-11-26"/>
314
+ <dependency type="xml-version" value="1.1"/>
315
+ <test>string-to-codepoints(codepoints-to-string(11))</test>
316
+ <result>
317
+ <assert-eq>11</assert-eq>
318
+ </result>
319
+ </test-case>
320
+
321
+ <test-case name="K-CodepointToStringFunc-12">
322
+ <description> Codepoint 12 is invalid in XML 1.0 but valid in XML 1.1. </description>
323
+ <created by="Frans Englich" on="2007-11-26"/>
324
+ <dependency type="xml-version" value="1.0"/>
325
+ <test>codepoints-to-string(12)</test>
326
+ <result>
327
+ <error code="FOCH0001"/>
328
+ </result>
329
+ </test-case>
330
+
331
+ <test-case name="K-CodepointToStringFunc-12b">
332
+ <description> Codepoint 12 is invalid in XML 1.0 but valid in XML 1.1. </description>
333
+ <created by="Frans Englich" on="2007-11-26"/>
334
+ <dependency type="xml-version" value="1.1"/>
335
+ <test>string-to-codepoints(codepoints-to-string(12))</test>
336
+ <result>
337
+ <assert-eq>12</assert-eq>
338
+ </result>
339
+ </test-case>
340
+
341
+ <test-case name="K-CodepointToStringFunc-13">
342
+ <description> A test whose essence is: `codepoints-to-string(13) eq "&amp;#xd;"`. </description>
343
+ <created by="Frans Englich" on="2007-11-26"/>
344
+ <modified by="O'Neil Delpratt" on="2011-09-06" change="wrapped test in a CDATA Section to prevent changing query by XML CRLF handling" />
345
+ <modified by="Michael Kay" on="2011-11-09" change="Add dependency on XQuery because of use of XML character reference" />
346
+ <dependency type="spec" value="XQ10+"/>
347
+ <test><![CDATA[codepoints-to-string(13) eq "&#xD;"]]></test>
348
+ <result>
349
+ <assert-true/>
350
+ </result>
351
+ </test-case>
352
+
353
+ <test-case name="K-CodepointToStringFunc-14">
354
+ <description> Codepoint 14 is invalid in XML 1.0 but valid in XML 1.1. </description>
355
+ <created by="Frans Englich" on="2007-11-26"/>
356
+ <test>string-to-codepoints(codepoints-to-string(14))</test>
357
+ <result>
358
+ <any-of>
359
+ <assert-eq>14</assert-eq>
360
+ <error code="FOCH0001"/>
361
+ </any-of>
362
+ </result>
363
+ </test-case>
364
+
365
+ <test-case name="K-CodepointToStringFunc-15">
366
+ <description> Codepoint 31 is invalid in XML 1.0 but valid in XML 1.1. </description>
367
+ <created by="Frans Englich" on="2007-11-26"/>
368
+ <test>string-to-codepoints(codepoints-to-string(31))</test>
369
+ <result>
370
+ <any-of>
371
+ <assert-eq>31</assert-eq>
372
+ <error code="FOCH0001"/>
373
+ </any-of>
374
+ </result>
375
+ </test-case>
376
+
377
+ <test-case name="K-CodepointToStringFunc-16">
378
+ <description> A test whose essence is: `codepoints-to-string(32) eq "&amp;#x20;"`. </description>
379
+ <created by="Frans Englich" on="2007-11-26"/>
380
+ <test>codepoints-to-string(32) eq " "</test>
381
+ <result>
382
+ <assert-true/>
383
+ </result>
384
+ </test-case>
385
+
386
+ <test-case name="K-CodepointToStringFunc-17">
387
+ <description> A test whose essence is: `codepoints-to-string(27637) eq "&amp;#x6bf5;"`. </description>
388
+ <created by="Frans Englich" on="2007-11-26"/>
389
+ <test>codepoints-to-string(27637) eq "&#27637;"</test>
390
+ <result>
391
+ <assert-true/>
392
+ </result>
393
+ </test-case>
394
+
395
+ <test-case name="K-CodepointToStringFunc-18">
396
+ <description> A test whose essence is: `codepoints-to-string(55295) eq "&amp;#xD7FF;"`. </description>
397
+ <created by="Frans Englich" on="2007-11-26"/>
398
+ <test>codepoints-to-string(55295) eq "&#55295;"</test>
399
+ <result>
400
+ <assert-true/>
401
+ </result>
402
+ </test-case>
403
+
404
+ <test-case name="K-CodepointToStringFunc-19">
405
+ <description> A test whose essence is: `codepoints-to-string(55296)`. </description>
406
+ <created by="Frans Englich" on="2007-11-26"/>
407
+ <test>codepoints-to-string(55296)</test>
408
+ <result>
409
+ <error code="FOCH0001"/>
410
+ </result>
411
+ </test-case>
412
+
413
+ <test-case name="K-CodepointToStringFunc-20">
414
+ <description> A test whose essence is: `codepoints-to-string(57343)`. </description>
415
+ <created by="Frans Englich" on="2007-11-26"/>
416
+ <test>codepoints-to-string(57343)</test>
417
+ <result>
418
+ <error code="FOCH0001"/>
419
+ </result>
420
+ </test-case>
421
+
422
+ <test-case name="K-CodepointToStringFunc-21">
423
+ <description> A test whose essence is: `codepoints-to-string(57344) eq "&amp;#xE000;"`. </description>
424
+ <created by="Frans Englich" on="2007-11-26"/>
425
+ <test>codepoints-to-string(57344) eq "&#57344;"</test>
426
+ <result>
427
+ <assert-true/>
428
+ </result>
429
+ </test-case>
430
+
431
+ <test-case name="K-CodepointToStringFunc-22">
432
+ <description> A test whose essence is: `codepoints-to-string(61438) eq "&amp;#xEFFE;"`. </description>
433
+ <created by="Frans Englich" on="2007-11-26"/>
434
+ <test>codepoints-to-string(61438) eq "&#61438;"</test>
435
+ <result>
436
+ <assert-true/>
437
+ </result>
438
+ </test-case>
439
+
440
+ <test-case name="K-CodepointToStringFunc-23">
441
+ <description> A test whose essence is: `codepoints-to-string(65533) eq "&amp;#xFFFD;"`. </description>
442
+ <created by="Frans Englich" on="2007-11-26"/>
443
+ <test>codepoints-to-string(65533) eq "&#65533;"</test>
444
+ <result>
445
+ <assert-true/>
446
+ </result>
447
+ </test-case>
448
+
449
+ <test-case name="K-CodepointToStringFunc-24">
450
+ <description> A test whose essence is: `codepoints-to-string(65534)`. </description>
451
+ <created by="Frans Englich" on="2007-11-26"/>
452
+ <test>codepoints-to-string(65534)</test>
453
+ <result>
454
+ <error code="FOCH0001"/>
455
+ </result>
456
+ </test-case>
457
+
458
+ <test-case name="K-CodepointToStringFunc-25">
459
+ <description> A test whose essence is: `codepoints-to-string(65535)`. </description>
460
+ <created by="Frans Englich" on="2007-11-26"/>
461
+ <test>codepoints-to-string(65535)</test>
462
+ <result>
463
+ <error code="FOCH0001"/>
464
+ </result>
465
+ </test-case>
466
+
467
+ <test-case name="K-CodepointToStringFunc-26">
468
+ <description> A test whose essence is: `codepoints-to-string(65536) eq "&amp;#x10000;"`. </description>
469
+ <created by="Frans Englich" on="2007-11-26"/>
470
+ <test>codepoints-to-string(65536) eq "&#65536;"</test>
471
+ <result>
472
+ <assert-true/>
473
+ </result>
474
+ </test-case>
475
+
476
+ <test-case name="K-CodepointToStringFunc-27">
477
+ <description> A test whose essence is: `codepoints-to-string(589823) eq "&amp;#x8FFFF;"`. </description>
478
+ <created by="Frans Englich" on="2007-11-26"/>
479
+ <test>codepoints-to-string(589823) eq "&#589823;"</test>
480
+ <result>
481
+ <assert-true/>
482
+ </result>
483
+ </test-case>
484
+
485
+ <test-case name="K-CodepointToStringFunc-28">
486
+ <description> A test whose essence is: `codepoints-to-string(1114111) eq "&amp;#x10FFFF;"`. </description>
487
+ <created by="Frans Englich" on="2007-11-26"/>
488
+ <test>codepoints-to-string(1114111) eq "&#1114111;"</test>
489
+ <result>
490
+ <assert-true/>
491
+ </result>
492
+ </test-case>
493
+
494
+ <test-case name="K-CodepointToStringFunc-29">
495
+ <description> A test whose essence is: `codepoints-to-string(1114112)`. </description>
496
+ <created by="Frans Englich" on="2007-11-26"/>
497
+ <test>codepoints-to-string(1114112)</test>
498
+ <result>
499
+ <error code="FOCH0001"/>
500
+ </result>
501
+ </test-case>
502
+
503
+ <test-case name="cbcl-codepoints-to-string-001">
504
+ <description> test fn:codepoints-to-string with invalid control character </description>
505
+ <created by="Tim Mills" on="2008-04-11"/>
506
+ <dependency type="spec" value="XQ10+"/>
507
+ <test>
508
+ declare function local:test($test as xs:integer) as xs:integer? {
509
+ if ($test = 1) then ( 0 ) else if ($test = 2) then ( 9 ) else if ($test = 3) then ( 13 ) else if ($test = 4) then ( 16 ) else ()
510
+ };
511
+ fn:codepoints-to-string( local:test(1) to 32 )</test>
512
+ <result>
513
+ <error code="FOCH0001"/>
514
+ </result>
515
+ </test-case>
516
+
517
+
518
+ <test-case name="cbcl-codepoints-to-string-002">
519
+ <description> test fn:codepoints-to-string with invalid control character </description>
520
+ <created by="Tim Mills" on="2008-04-11"/>
521
+ <modified by="Michael Kay" on="2016-11-12" change="Added dependency, See bug 30001"/>
522
+ <dependency type="spec" value="XQ10+"/>
523
+ <dependency type="xsd-version" value="1.0"/>
524
+ <test>
525
+ declare function local:test($test as xs:integer) as xs:integer? {
526
+ if ($test = 1) then ( 0 ) else if ($test = 2) then ( 9 ) else if ($test = 3) then ( 13 ) else if ($test = 4) then ( 16 ) else ()
527
+ };
528
+ fn:codepoints-to-string( local:test(2) to 32 )</test>
529
+ <result>
530
+ <error code="FOCH0001"/>
531
+ </result>
532
+ </test-case>
533
+
534
+
535
+ <test-case name="cbcl-codepoints-to-string-003">
536
+ <description> test fn:codepoints-to-string with invalid control character </description>
537
+ <created by="Tim Mills" on="2008-04-11"/>
538
+ <modified by="Michael Kay" on="2016-11-12" change="Added dependency, See bug 30001"/>
539
+ <dependency type="spec" value="XQ10+"/>
540
+ <dependency type="xsd-version" value="1.0"/>
541
+ <test>
542
+ declare function local:test($test as xs:integer) as xs:integer? {
543
+ if ($test = 1) then ( 0 ) else if ($test = 2) then ( 9 ) else if ($test = 3) then ( 13 )else if ($test = 4) then ( 16 ) else ()
544
+ };
545
+ fn:codepoints-to-string( local:test(3) to 32 )</test>
546
+ <result>
547
+ <error code="FOCH0001"/>
548
+ </result>
549
+ </test-case>
550
+
551
+
552
+ <test-case name="cbcl-codepoints-to-string-004">
553
+ <description> test fn:codepoints-to-string with invalid control character </description>
554
+ <created by="Tim Mills" on="2008-04-11"/>
555
+ <modified by="Michael Kay" on="2016-11-12" change="Added dependency, See bug 30001"/>
556
+ <dependency type="spec" value="XQ10+"/>
557
+ <dependency type="xsd-version" value="1.0"/>
558
+ <test>declare function local:test($test as xs:integer) as xs:integer? {
559
+ if ($test = 1) then ( 0 ) else if ($test = 2) then ( 9 ) else if ($test = 3) then ( 13 ) else if ($test = 4) then ( 16 ) else ()
560
+ };
561
+ fn:codepoints-to-string( local:test(4) to 32 )</test>
562
+ <result>
563
+ <error code="FOCH0001"/>
564
+ </result>
565
+ </test-case>
566
+
567
+
568
+ <test-case name="cbcl-codepoints-to-string-005">
569
+ <description> test fn:codepoints-to-string with codepoints above 0x10FFFF </description>
570
+ <created by="Tim Mills" on="2008-04-11"/>
571
+ <test>fn:codepoints-to-string( 65536 to 1114112 )</test>
572
+ <result>
573
+ <error code="FOCH0001"/>
574
+ </result>
575
+ </test-case>
576
+
577
+
578
+ <test-case name="cbcl-codepoints-to-string-006">
579
+ <description> test fn:codepoints-to-string spanning surrogate characters </description>
580
+ <created by="Tim Mills" on="2008-04-11"/>
581
+ <test>fn:codepoints-to-string( 55295 to 55297 )</test>
582
+ <result>
583
+ <error code="FOCH0001"/>
584
+ </result>
585
+ </test-case>
586
+
587
+
588
+ <test-case name="cbcl-codepoints-to-string-007">
589
+ <description> test fn:codepoints-to-string spanning surrogate characters </description>
590
+ <created by="Tim Mills" on="2008-04-11"/>
591
+ <test>fn:codepoints-to-string( 55296 to 57343 )</test>
592
+ <result>
593
+ <error code="FOCH0001"/>
594
+ </result>
595
+ </test-case>
596
+
597
+
598
+ <test-case name="cbcl-codepoints-to-string-008">
599
+ <description> test fn:codepoints-to-string spanning surrogate characters </description>
600
+ <created by="Tim Mills" on="2008-04-11"/>
601
+ <test>fn:codepoints-to-string( 65535 to 70000 )</test>
602
+ <result>
603
+ <error code="FOCH0001"/>
604
+ </result>
605
+ </test-case>
606
+
607
+
608
+ <test-case name="cbcl-codepoints-to-string-009">
609
+ <description> test fn:codepoints-to-string spanning surrogate characters </description>
610
+ <created by="Tim Mills" on="2008-04-11"/>
611
+ <test>fn:codepoints-to-string( 65530 to 70000 )</test>
612
+ <result>
613
+ <error code="FOCH0001"/>
614
+ </result>
615
+ </test-case>
616
+
617
+
618
+ <test-case name="cbcl-codepoints-to-string-010">
619
+ <description> test fn:boolean on fn:codepoints-to-string </description>
620
+ <created by="Tim Mills" on="2008-04-11"/>
621
+ <test>fn:boolean(fn:codepoints-to-string( 65 to 76 ))</test>
622
+ <result>
623
+ <assert-true/>
624
+ </result>
625
+ </test-case>
626
+
627
+
628
+ <test-case name="cbcl-codepoints-to-string-011">
629
+ <description> test fn:boolean on fn:codepoints-to-string </description>
630
+ <created by="Tim Mills" on="2008-04-11"/>
631
+ <test>fn:boolean(fn:codepoints-to-string( 0 ))</test>
632
+ <result>
633
+ <error code="FOCH0001"/>
634
+ </result>
635
+ </test-case>
636
+
637
+
638
+ <test-case name="cbcl-codepoints-to-string-012">
639
+ <description> test fn:boolean on fn:codepoints-to-string </description>
640
+ <created by="Tim Mills" on="2008-04-11"/>
641
+ <test>fn:boolean(fn:codepoints-to-string( 999999999 ))</test>
642
+ <result>
643
+ <error code="FOCH0001"/>
644
+ </result>
645
+ </test-case>
646
+
647
+
648
+ <test-case name="cbcl-codepoints-to-string-013">
649
+ <description> test fn:boolean on fn:codepoints-to-string </description>
650
+ <created by="Tim Mills" on="2008-04-11"/>
651
+ <test>fn:boolean(fn:codepoints-to-string( 65 ))</test>
652
+ <result>
653
+ <assert-true/>
654
+ </result>
655
+ </test-case>
656
+
657
+
658
+ <test-case name="cbcl-codepoints-to-string-014">
659
+ <description> test fn:boolean on fn:codepoints-to-string </description>
660
+ <created by="Tim Mills" on="2008-04-11"/>
661
+ <test>fn:boolean(fn:codepoints-to-string( () ))</test>
662
+ <result>
663
+ <assert-false/>
664
+ </result>
665
+ </test-case>
666
+
667
+
668
+ <test-case name="cbcl-codepoints-to-string-015">
669
+ <description> fn:codepoints-to-string on multibyte ranges </description>
670
+ <created by="Oliver Hallam" on="2008-04-15"/>
671
+ <test>deep-equal( fn:string-to-codepoints(fn:codepoints-to-string(65536 to 66000)), 65536 to 66000 )</test>
672
+ <result>
673
+ <assert-true/>
674
+ </result>
675
+ </test-case>
676
+
677
+
678
+ <test-case name="cbcl-codepoints-to-string-016">
679
+ <description> fn:codepoints-to-string on multibyte ranges </description>
680
+ <created by="Oliver Hallam" on="2008-04-15"/>
681
+ <test>deep-equal( fn:string-to-codepoints(fn:codepoints-to-string(65536 to 100000)), 65536 to 100000 )</test>
682
+ <result>
683
+ <assert-true/>
684
+ </result>
685
+ </test-case>
686
+
687
+
688
+ <test-case name="cbcl-codepoints-to-string-017">
689
+ <description> Test codepoints to string on a range, returning a boolean </description>
690
+ <created by="Nick Jones" on="2008-06-12"/>
691
+ <test>for $x in 32 to 64 return boolean(codepoints-to-string($x to $x + 10))</test>
692
+ <result>
693
+ <assert-string-value>true true true true true true true true true true true true true true true true true true true true true true true true true true true true true true true true true</assert-string-value>
694
+ </result>
695
+ </test-case>
696
+
697
+
698
+ <test-case name="cbcl-codepoints-to-string-018">
699
+ <description> Tries to force evaluate to item on codepoint-to-string </description>
700
+ <created by="Nick Jones" on="2008-06-13"/>
701
+ <dependency type="spec" value="XQ10+"/>
702
+ <test><![CDATA[if(5 < exactly-one((1 to 10)[. div 2 = 5])) then codepoints-to-string(32 to exactly-one((1 to 100)[. div 2 = 40])) else ()]]></test>
703
+ <result>
704
+ <assert-string-value> !"#$%&amp;'()*+,-./0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOP</assert-string-value>
705
+ </result>
706
+ </test-case>
707
+
708
+
709
+ <test-case name="cbcl-codepoints-to-string-019">
710
+ <description> Tests for calling EvaluateToOptionalItem </description>
711
+ <created by="Nick Jones" on="2008-06-16"/>
712
+ <test>for $x in 65 to 75 return string-length(codepoints-to-string($x to $x+10))</test>
713
+ <result>
714
+ <assert-string-value>11 11 11 11 11 11 11 11 11 11 11</assert-string-value>
715
+ </result>
716
+ </test-case>
717
+
718
+
719
+ <test-case name="cbcl-codepoints-to-string-020">
720
+ <description> Tests false returns from TryArguments </description>
721
+ <created by="Nick Jones" on="2008-06-16"/>
722
+ <test>for $x in 65 to 75 return boolean(codepoints-to-string($x[. mod 2 = 0] to ($x+9)[. mod 2 = 0]))</test>
723
+ <result>
724
+ <assert-string-value>false false false false false false false false false false false</assert-string-value>
725
+ </result>
726
+ </test-case>
727
+
728
+
729
+ <test-case name="cbcl-codepoints-to-string-021">
730
+ <description> Tests overflows </description>
731
+ <created by="Nick Jones" on="2008-06-16"/>
732
+ <modified by="Michael Kay" on="2015-01-03" change="See bug 27719"/>
733
+ <dependency type="spec" value="XQ10+ XP30+"/>
734
+ <test>let $y := 65536*65536 return for $x in $y to $y+10 return codepoints-to-string(65 to $x)</test>
735
+ <result>
736
+ <any-of>
737
+ <error code="FOCH0001"/>
738
+ <error code="XPDY0130"/>
739
+ </any-of>
740
+ </result>
741
+ </test-case>
742
+
743
+
744
+ <test-case name="cbcl-codepoints-to-string-022">
745
+ <description> Tests overflows </description>
746
+ <created by="Nick Jones" on="2008-06-16"/>
747
+ <dependency type="spec" value="XQ10+ XP30+"/>
748
+ <test>let $y := 65536*65536 return for $x in $y to $y+10 return codepoints-to-string($x to $x+10)</test>
749
+ <result>
750
+ <error code="FOCH0001"/>
751
+ </result>
752
+ </test-case>
753
+
754
+
755
+ <test-case name="cbcl-codepoints-to-string-023">
756
+ <description> Tests invalid codepoint 0xB </description>
757
+ <created by="Nick Jones" on="2008-06-16"/>
758
+ <modified by="Michael Kay" on="2013-03-19" change="add dependency"/>
759
+ <dependency type="xml-version" value="1.0"/>
760
+ <test>for $x in 9 to 15 return codepoints-to-string($x to $x)</test>
761
+ <result>
762
+ <error code="FOCH0001"/>
763
+ </result>
764
+ </test-case>
765
+
766
+
767
+ <test-case name="cbcl-codepoints-to-string-024">
768
+ <description> Tests invalid codepoint 0xE </description>
769
+ <created by="Nick Jones" on="2008-06-16"/>
770
+ <modified by="Michael Kay" on="2013-03-19" change="add dependency, correct description"/>
771
+ <dependency type="xml-version" value="1.0"/>
772
+ <test>for $x in 13 to 15 return codepoints-to-string($x to $x)</test>
773
+ <result>
774
+ <error code="FOCH0001"/>
775
+ </result>
776
+ </test-case>
777
+
778
+
779
+ <test-case name="cbcl-codepoints-to-string-025">
780
+ <description> Tests valid codepoints 0x9, 0xA </description>
781
+ <created by="Nick Jones" on="2008-06-16"/>
782
+ <test>for $x in 9 to 9 return codepoints-to-string($x to $x+1)</test>
783
+ <result>
784
+ <assert-eq>'&#x9;&#xa;'</assert-eq>
785
+ </result>
786
+ </test-case>
787
+
788
+
789
+ <test-case name="cbcl-codepoints-to-string-026">
790
+ <description> Tests valid codepoint 0xD </description>
791
+ <created by="Nick Jones" on="2008-06-16"/>
792
+ <test>for $x in 13 to 13 return codepoints-to-string($x to $x)</test>
793
+ <result>
794
+ <assert-string-value>&#xD;</assert-string-value>
795
+ </result>
796
+ </test-case>
797
+
798
+
799
+ <test-case name="cbcl-codepoints-to-string-027">
800
+ <description> Tests last lower codepoint case </description>
801
+ <created by="Nick Jones" on="2008-06-16"/>
802
+ <modified by="Michael Kay" on="2020-01-06" change="avoid assert-string-value on a sequence of multiple strings"/>
803
+ <test>for $x in (13), $y in (13,9,10) return codepoints-to-string($x to $y)</test>
804
+ <result>
805
+ <assert-deep-eq>"&#xD;", "", ""</assert-deep-eq>
806
+ </result>
807
+ </test-case>
808
+ </test-set>