|
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-apply* | 16/16 | 13/13 | 16/16 | 13/13 | 16/16 | 16/0 | 0/6 |
fn-apply-01[+]
X fn-apply-01: Created on: 2014-12-17 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(abs#1, [-2]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-02[+]
X fn-apply-02: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(true#0, array {}) |
pass | pass | pass | pass | pass | pass | |
fn-apply-03[+]
X fn-apply-03: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(string-join#1, [reverse(1 to 5) ! string()]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-04[+]
X fn-apply-04: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $func := function($a,$b,$c) { $a + $b + $c } , $args := [ 1, 2, 3 ] return apply($func, $args) |
pass | pass | pass | pass | pass | pass | |
fn-apply-05[+]
X fn-apply-05: Created on: 2014-12-19 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: declare function local:square($n as xs:integer) { $n * $n }; apply(local:square#1, [ 10 ]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-apply-06[+]
X fn-apply-06: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(substring('flower', ?, ?), [ 3, 2 ]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-07[+]
X fn-apply-07: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $f := function-lookup(xs:QName('fn:count'), 1) return apply($f, [ ('one', 'two') ]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-08[+]
X fn-apply-08: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: for $a in 2 to 3 return let $f := function-lookup(xs:QName('fn:concat'), $a) return apply($f, array { 1 to $a }) |
pass | pass | pass | pass | pass | pass | |
fn-apply-09[+]
X fn-apply-09: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: for $name in (true#0, count#1, empty#1, concat#2) return let $arity := function-arity($name) , $args := array { (1 to $arity) ! 'X' } return apply($name, $args) |
pass | pass | pass | pass | pass | pass | |
fn-apply-10[+]
X fn-apply-10: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: for $f in ( function($a) { $a }, function($a, $b) { $a + $b }, function($a, $b, $c) { $a + $b + $c } ) return apply($f, array { 1 to function-arity($f) }) |
pass | pass | pass | pass | pass | pass | |
fn-apply-11[+]
X fn-apply-11: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: data#1 => fn:apply([ [ 1 to 3 ] ]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-12[+]
X fn-apply-12: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(false#0, [0]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-13[+]
X fn-apply-13: Created on: 2014-12-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(string-length#1, [ ('a','b') ]) |
pass | pass | pass | pass | pass | pass | |
fn-apply-14[+]
X fn-apply-14: Created on: 2015-01-29 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: fn:apply(lower-case#1, [<a>ABC</a>]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-apply-15[+]
X fn-apply-15: Created on: 2015-01-29 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: declare function local:l($x as xs:string){lower-case($x)}; declare function local:u($x as xs:string){upper-case($x)}; let $data := <a><b>Banana</b></a> return apply(if (current-date() lt xs:date('1900-01-01')) then local:l#1 else local:u#1, [$data]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass | |
fn-apply-16[+]
X fn-apply-16: Created on: 2015-01-29 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ feature = higherOrderFunctions Test: apply(if (current-date() lt xs:date('1900-01-01')) then abs#1 else round#1, [-2]) |
pass | pass | pass | pass | pass | pass |