|
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) |
|
---|---|---|---|---|---|---|---|
fn-sort* | 26/41 | 32/32 | 41/41 | 32/32 | 41/41 | 41/0 | 0/6 |
fn-sort-1[+]
X fn-sort-1: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:empty(fn:sort( () )) |
pass | pass | pass | pass | pass | pass | |
fn-sort-2[+]
X fn-sort-2: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (1, 2, 3) ) return (count($r) eq 3 and $r[1] eq 1 and $r[2] eq 2 and $r[3] eq 3) |
pass | pass | pass | pass | pass | pass | |
fn-sort-3[+]
X fn-sort-3: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (3, 2, 1) ) return (count($r) eq 3 and $r[1] eq 1 and $r[2] eq 2 and $r[3] eq 3) |
pass | pass | pass | pass | pass | pass | |
fn-sort-4[+]
X fn-sort-4: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (1) ) return (count($r) eq 1 and $r[1] eq 1) |
pass | pass | pass | pass | pass | pass | |
fn-sort-5[+]
X fn-sort-5: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort(42) = 42 |
pass | pass | pass | pass | pass | pass | |
fn-sort-6[+]
X fn-sort-6: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (1) ) return (count($r) eq 1 and $r[1] eq 1) |
pass | pass | pass | pass | pass | pass | |
fn-sort-7[+]
X fn-sort-7: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (1, 17) ) return (count($r) eq 2 and $r[1] eq 1 and $r[2] eq 17) |
pass | pass | pass | pass | pass | pass | |
fn-sort-8[+]
X fn-sort-8: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (17, 1) ) return (count($r) eq 2 and $r[1] eq 1 and $r[2] eq 17) |
pass | pass | pass | pass | pass | pass | |
fn-sort-9[+]
X fn-sort-9: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (17, 17) ) return (count($r) eq 2 and $r[1] eq 17 and $r[2] eq 17) |
pass | pass | pass | pass | pass | pass | |
fn-sort-10[+]
X fn-sort-10: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (17, 5, 14) ) return (count($r) eq 3 and $r[1] eq 5 and $r[2] eq 14 and$r[3] eq 17) |
pass | pass | pass | pass | pass | pass | |
fn-sort-11[+]
X fn-sort-11: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (4, 4, 4) ) return (count($r) eq 3 and $r[1] eq 4 and $r[2] eq 4 and $r[3] eq 4) |
pass | pass | pass | pass | pass | pass | |
fn-sort-12[+]
X fn-sort-12: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (17, 14, 5) ) return (count($r) eq 3 and $r[1] eq 5 and $r[2] eq 14 and $r[3] eq 17) |
pass | pass | pass | pass | pass | pass | |
fn-sort-13[+]
X fn-sort-13: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (-42, 14, 5, 6, 14, 0) ) return (count($r) eq 6 and $r[1] eq -42 and $r[2] eq 0 and $r[3] eq 5 and $r[4] eq 6 and $r[5] eq 14 and $r[6] eq 14) |
pass | pass | pass | pass | pass | pass | |
fn-sort-14[+]
X fn-sort-14: Created on: 2015-08-10 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: <turtles> <name>Leonardo</name> <name>Raphael</name> <name>Donatello</name> <name>Michelangelo</name> </turtles> !sort(*)!data() |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-sort-15[+]
X fn-sort-15: Created on: 2015-08-10 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: deep-equal( sort( ( [<e>a</e>, <e>b</e>], [(<f>a</f>, <f>b</f>)], [<g>a</g>, <g>b</g>], "A", <h><i><j>A</j></i></h> ) ) ,( "A", <h><i><j>A</j></i></h>, [<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 | |
fn-sort-16[+]
X fn-sort-16: Created on: 2015-08-10 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: deep-equal( sort(("b", "d", <e>a</e>, "c", <f>e</f>)) ,(<e>a</e>, "b", "c", "d", <f>e</f>) ) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-sort-17[+]
X fn-sort-17: Created on: 2015-08-10 Spec Dependencies: spec = XP31+ XQ31+ Test: let $a := [xs:float("NaN"), 1], $b := [xs:float("NaN"), 2] return sort(($a,$b,$a,$b)) |
pass | pass | pass | pass | pass | pass | |
fn-sort-18[+]
X fn-sort-18: Created on: 2016-07-07 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort( (1, [1, 2]) ) |
no result | pass | pass | pass | pass | pass | |
fn-sort-19[+]
X fn-sort-19: Created on: 2016-07-07 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort( ([1, 2], 1) ) |
no result | pass | pass | pass | pass | pass | |
fn-sort-20[+]
X fn-sort-20: Created on: 2016-07-07 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort( ([()], 1) ) |
no result | pass | pass | pass | pass | pass | |
fn-sort-21[+]
X fn-sort-21: Created on: 2016-07-07 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort( (1, [()]) ) |
no result | pass | pass | pass | pass | pass | |
fn-sort-22[+]
X fn-sort-22: Created on: 2016-08-18 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:sort( (map{"key":1, "value":89}, map{"key":6, "value":21}, map{"key":2, "value":33}), (), map:get(?, "key"))?value |
no result | pass | pass | pass | pass | pass | |
fn-sort-frac-1[+]
X fn-sort-frac-1: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( (-4.2, 14.25, 5.99, 6, 14.24, 0) ) return (count($r) eq 6 and $r[1] eq -4.2 and $r[2] eq 0 and $r[3] eq 5.99 and $r[4] eq 6 and $r[5] eq 14.24 and $r[6] eq 14.25) |
pass | pass | pass | pass | pass | pass | |
fn-sort-str-1[+]
X fn-sort-str-1: Created on: 2015-01-08 Spec Dependencies: spec = XP31+ XQ31+ Test: let $r := fn:sort( ("boy","for","new","chosen","black","pope") ) return (count($r) eq 6 and $r[1] eq "black" and $r[2] eq "boy" and $r[3] eq "chosen" and $r[4] eq "for" and $r[5] eq "new" and $r[6] eq "pope" ) |
pass | pass | pass | pass | pass | pass | |
fn-sort2-str-1[+]
X fn-sort2-str-1: Created on: 2015-01-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $r := fn:sort( ("boy","for","new","chosen","black","pope"), (), fn:data#1 ) return (count($r) eq 6 and $r[1] eq "black" and $r[2] eq "boy" and $r[3] eq "chosen" and $r[4] eq "for" and $r[5] eq "new" and $r[6] eq "pope" ) |
pass | pass | pass | pass | pass | pass | |
fn-sort2-str-2[+]
X fn-sort2-str-2: Created on: 2015-01-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $r := fn:sort( ("boy","for","new","chosen","black","pope"), (), function($input as xs:anyAtomicType *) as item()* { fn:data($input) } ) return (count($r) eq 6 and $r[1] eq "black" and $r[2] eq "boy" and $r[3] eq "chosen" and $r[4] eq "for" and $r[5] eq "new" and $r[6] eq "pope" ) |
pass | pass | pass | pass | pass | pass | |
fn-sort-error-1[+]
X fn-sort-error-1: Created on: 2015-01-18 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:sort( (1, "a") ) |
pass | pass | pass | pass | pass | pass | |
fn-sort-error-2[+]
X fn-sort-error-2: Created on: 2016-08-18 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:sort( (map{"key":1}, map{"key":"a"}), (), map:get(?, "key")) |
no result | pass | pass | pass | pass | pass | |
fn-sort-spec-1[+]
X fn-sort-spec-1: Created on: 2015-01-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $r := fn:sort((1, 4, 6, 5, 3), (), fn:data#1 ) return (count($r) eq 5 and $r[1] eq 1 and $r[2] eq 3 and $r[3] eq 4 and $r[4] eq 5 and $r[5] eq 6 ) |
pass | pass | pass | pass | pass | pass | |
fn-sort-spec-1b[+]
X fn-sort-spec-1b: Created on: 2015-01-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $r := fn:sort((10, 4, 6, 5, 3), (), fn:data#1 ) return (count($r) eq 5 and $r[1] eq 3 and $r[2] eq 4 and $r[3] eq 5 and $r[4] eq 6 and $r[5] eq 10 ) |
pass | pass | pass | pass | pass | pass | |
fn-sort-spec-2[+]
X fn-sort-spec-2: Created on: 2015-01-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $r := fn:sort((1, -2, 5, 10, -10, 10, 8), (), fn:abs#1) return (count($r) eq 7 and $r[1] eq 1 and $r[2] eq -2 and $r[3] eq 5 and $r[4] eq 8 and $r[5] eq 10 and $r[6] eq -10 and $r[7] eq 10 ) |
pass | pass | pass | pass | pass | pass | |
fn-sort-spec-4[+]
X fn-sort-spec-4: Created on: 2015-01-08 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $employees := ( <emp><name><first>Reginald</first><last>Cawcutt</last></name></emp>, <emp><name><first>Hans</first><last>Groër</last></name></emp>, <emp><name><first>Domingo</first><last>De Silveira</last></name></emp>, <emp><name><first>Keith</first><last>O'Brien</last></name></emp>, <emp><name><first>Susan</first><last>Cawcutt</last></name></emp>, <emp><name><first>Martin</first><last>Cawcutt</last></name></emp> ), $r := fn:sort($employees, default-collation(), function($emp) {$emp/name/last, $emp/name/first}) return (count($r) eq 6 and fn:data($r[1]/name/first) eq "Martin" and fn:data($r[2]/name/first) eq "Reginald" and fn:data($r[3]/name/first) eq "Susan" and fn:data($r[4]/name/first) eq "Domingo" and fn:data($r[5]/name/first) eq "Hans" and fn:data($r[6]/name/first) eq "Keith" ) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-sort-spec-5[+]
X fn-sort-spec-5: 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 fn:sort($employees, default-collation(), function($emp) {$emp/name/last, $emp/name/first}) ! number(@id) |
no result | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-sort-collation-1[+]
X fn-sort-collation-1: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; fn:sort(("Red", "green", "blUE", "PINK", "ORanGE")) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
fn-sort-collation-2[+]
X fn-sort-collation-2: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; fn:sort(("Red", "green", "blUE", "PINK", "ORanGE"), ()) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
fn-sort-collation-3[+]
X fn-sort-collation-3: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: declare default collation "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind"; fn:sort(("Red", "green", "blUE", "PINK", "ORanGE"), (), string#1) |
no result | n/a
environment dependencies not satisfied |
pass | n/a | pass | pass | |
fn-sort-collation-4[+]
X fn-sort-collation-4: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ Test: fn:sort(("Red", "green", "blUE", "PINK", "ORanGE"), "http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind") |
no result | pass | pass | pass | pass | pass | |
fn-sort-collation-5[+]
X fn-sort-collation-5: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn: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 | |
fn-sort-collation-6[+]
X fn-sort-collation-6: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ Test: fn:sort(("Red", "green", "blUE", "PINK", "ORanGE"), "http://www.w3.org/2005/xpath-functions/collation/codepoint") |
no result | pass | pass | pass | pass | pass | |
fn-sort-collation-7[+]
X fn-sort-collation-7: Created on: 2016-08-18 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn: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 | |
fn-sort-collation-8[+]
X fn-sort-collation-8: Created on: 2016-08-18 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions spec = XP31+ XQ31+ Test: declare function local:key($n as xs:integer) as xs:string { ("Red", "green", "blUE", "PINK", "ORanGE")[$n] }; fn:sort((1 to 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 |