|
Implementations | |||||||
Tests | BaseX 8.5 beta XQ31 (QT3 vCVS) |
Saxon-EE 9.7.0.11 XP31 (QT3 v0.6) |
Saxon-EE 9.7.0.11 XQ31 (QT3 v0.6) |
XmlPrime 4.0.0.16079 XP31 (QT3 vCVS) |
XmlPrime 4.0.0.26293 XQ31 (QT3 vCVS) |
XmlPrime 4.0.0.27704 XQX31 (QT3 vCVS) |
|
---|---|---|---|---|---|---|---|
array-sort* | 21/33 | 26/26 | 33/33 | 26/26 | 33/33 | 33/0 | 0/6 |
array-sort-001[+]
X array-sort-001: Created on: 2014-11-24 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort([1, 4, 6, 5, 3]) |
pass | pass | pass | pass | pass | pass | |
array-sort-002[+]
X array-sort-002: Created on: 2014-11-24 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([1, -2, 5, 10, -10, 10, 8], (), fn:abs#1) |
pass | pass | pass | pass | pass | pass | |
array-sort-003[+]
X array-sort-003: Created on: 2014-11-24 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort([(1,0), (1,1), (0,1), (0,0)]) |
pass | pass | pass | pass | pass | pass | |
array-sort-004[+]
X array-sort-004: Created on: 2014-11-24 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort([(1,0), (1,1), (0,1), (0,0), (), (1), (0,0,1)]) |
pass | pass | pass | pass | pass | pass | |
array-sort-005[+]
X array-sort-005: Created on: 2014-11-24 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([(1,0), (1,1), (0,1), (0,0), (), (1), (0,0,1)], default-collation(), count#1) |
pass | pass | pass | pass | pass | pass | |
array-sort-006[+]
X array-sort-006: Created on: 2014-11-24 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort(["one", "two", "three", "four", "five", "fourteen"]) |
pass | pass | pass | pass | pass | pass | |
array-sort-007[+]
X array-sort-007: Created on: 2014-11-25 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort(["one", "two", "three", (0), (2,3)]) |
pass | pass | pass | pass | pass | pass | |
array-sort-008[+]
X array-sort-008: Created on: 2014-11-25 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort(["one", "two", "three", "four", "five", "fourteen"], (), function($x) {string-length($x), data($x)}) |
pass | pass | pass | pass | pass | pass | |
array-sort-009[+]
X array-sort-009: Created on: 2014-11-25 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([[2,3],[],[4,5,6,7],[6,7],[3]], default-collation(), array:size#1) |
pass | pass | pass | pass | pass | pass | |
array-sort-010[+]
X array-sort-010: Created on: 2014-11-25 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([[2,3],[],[4,5,6,7],[6,7],[3]], default-collation(), fn:data#1) |
pass | pass | pass | pass | pass | pass | |
array-sort-011[+]
X array-sort-011: Created on: 2014-11-25 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([[1,0], [1,1], [0,1], [0,0], [], [1], [0,0,1]], (), fn:data#1) |
pass | pass | pass | pass | pass | pass | |
array-sort-012[+]
X array-sort-012: Created on: 2014-11-25 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort(["the cat", "sat", "on the mat"], "http://www.w3.org/2005/xpath-functions/collation/codepoint", function($x) {count(tokenize($x, " "))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-012a[+]
X array-sort-012a: Created on: 2015-01-20 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort(["the cat", "sat", "on the mat"], (), function($x) {count(tokenize($x))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-013[+]
X array-sort-013: Created on: 2014-11-26 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([["John","Smith"], ["John","Brown"], ["Fred","Brown"], ["Fred","Smith"]], (), function($emp) {fn:data(array:get($emp, 1))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-014[+]
X array-sort-014: Created on: 2014-11-26 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([["John","Smith"], ["John","Brown"], ["Fred","Brown"], ["Fred","Smith"]], (), function($emp) {fn:data(array:get($emp, 2)), fn:data(array:get($emp, 1))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-015[+]
X array-sort-015: Created on: 2014-11-26 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([["John","Smith"], ["John","Brown"], ["Fred","Brown"], ["Fred","Smith"]], (), function($emp) {array:get($emp, 2), array:get($emp, 1)}) |
pass | pass | pass | pass | pass | pass | |
array-sort-016[+]
X array-sort-016: Created on: 2014-11-26 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([[1,0], [1,1], [0,1], [0,0], [], [1], [0,0,1]], (), function($x) {array:size(array:filter($x, function($y) {$y eq 1}))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-017[+]
X array-sort-017: Created on: 2014-11-26 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort([[1,0], [1,1], [0,1], [0,0], [], [1], [0,0,1]], (), function($x) {array:size($x), array:size(array:filter($x, function($y) {$y eq 1}))}) |
pass | pass | pass | pass | pass | pass | |
array-sort-018[+]
X array-sort-018: Created on: 2015-08-10 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: deep-equal( array:sort( [ [<e>a</e>, <e>b</e>], [(<f>a</f>, <f>b</f>)], [<g>a</g>, <g>b</g>], "A", ("A","B") ] ) ,[ "A", ("A","B"), [<e>a</e>, <e>b</e>], [(<f>a</f>, <f>b</f>)], [<g>a</g>, <g>b</g>] ] ) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
array-sort-019[+]
X array-sort-019: Created on: 2015-08-10 Spec Dependencies: spec = XP31+ XQ31+ Test: array:sort([map{},1]) |
pass | wrongError
Expected error:FOTY0013, got null |
pass | pass | pass | pass | |
array-sort-020[+]
X array-sort-020: Created on: 2015-08-10 Spec Dependencies: spec = XQ31+ feature = schemaValidation spec = XP31+ XQ31+ Test: array:sort([[3],2,validate type xs:integer { <e>1</e> }]) |
no result | n/a
notXP31 |
pass | n/a | pass | pass | |
array-sort-021[+]
X array-sort-021: Created on: 2015-08-10 Spec Dependencies: spec = XP31+ XQ31+ Test: let $a := [xs:float("NaN"), 1], $b := [xs:float("NaN"), 2] return array:sort([$a,$b,$a,$b]) |
pass | pass | pass | pass | pass | pass | |
array-sort-022[+]
X array-sort-022: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $employees := [ <emp id='1'><name><last>Cawcutt</last></name></emp>, <emp id='2'><name><first>Hans</first><last>Groër</last></name></emp>, <emp id='3'><name><first>Domingo</first><last>De Silveira</last></name></emp>, <emp id='4'><name><first>Keith</first><last>O'Brien</last></name></emp>, <emp id='5'><name><first>Susan</first><last>Cawcutt</last></name></emp>, <emp id='6'><name><first>Martin</first><last>Cawcutt</last></name></emp>, <emp id='7'><name><first>Martin</first><first>James</first><last>Cawcutt</last></name></emp> ] return array:sort($employees, default-collation(), function($emp) {$emp/name/last, $emp/name/first})?* ! number(@id) |
no result | n/a
notXP31 |
pass | n/a | pass | pass | |
array-sort-023[+]
X array-sort-023: Created on: 2016-08-18 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort( parse-json('[{"key":1, "value":89}, {"key":6, "value":21}, {"key":2, "value":33}]'), (), map:get(?, "key"))?*?value |
no result | pass | pass | pass | pass | pass | |
array-sort-024[+]
X array-sort-024: Created on: 2016-08-18 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort( parse-json('[{"key":1, "value":89}, {"key":6, "value":21}, {"key":"two", "value":33}]'), (), map:get(?, "key"))?*?value |
no result | pass | pass | pass | pass | pass | |
array-sort-collation-1[+]
X array-sort-collation-1: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; array:sort(["Red", "green", "blUE", "PINK", "ORanGE"]) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
array-sort-collation-2[+]
X array-sort-collation-2: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], ()) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
array-sort-collation-3[+]
X array-sort-collation-3: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], (), string#1) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
array-sort-collation-4[+]
X array-sort-collation-4: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ Test: array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind") |
no result | pass | pass | pass | pass | pass | |
array-sort-collation-5[+]
X array-sort-collation-5: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind", fn:string#1) |
no result | pass | pass | pass | pass | pass | |
array-sort-collation-6[+]
X array-sort-collation-6: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ Test: array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], "http://www.w3.org/2005/xpath-functions/collation/codepoint") |
no result | pass | pass | pass | pass | pass | |
array-sort-collation-7[+]
X array-sort-collation-7: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: array:sort(["Red", "green", "blUE", "PINK", "ORanGE"], "http://www.w3.org/2005/xpath-functions/collation/codepoint", fn:string#1) |
no result | pass | pass | pass | pass | pass | |
array-sort-collation-8[+]
X array-sort-collation-8: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; declare function local:key($n as xs:integer) as xs:string { ("Red", "green", "blUE", "PINK", "ORanGE")[$n] }; array:sort([1,2,3,4,5], "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind", local:key#1) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass |