Change id: fn-apply
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-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 |
fn-function-lookup-724[+]
X fn-function-lookup-724: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: exists(function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'apply'), 2)) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-725[+]
X fn-function-lookup-725: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'apply'), 2)( abs#1, [-2] ) |
no result | pass | pass | pass | pass | pass |
inline-fn-023[+]
X inline-fn-023: Created on: 2016-03-09 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $add := function($x, $y) {$x + $y} return apply($add, [12, 5]) |
pass | pass | pass | pass | pass | pass |
d1e48617[+]
X d1e48617: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: let $f := upper-case#1 return apply($f,["a"]) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e48676[+]
X d1e48676: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: apply(substring#3,["sometext",2,4]) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e48687[+]
X d1e48687: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: apply(max#1,[(1,2,3)]) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e48698[+]
X d1e48698: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: apply(concat#3,["a","b","c"]) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e48709[+]
X d1e48709: Created on: 2015-06-10 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ Test: apply(upper-case#1,['a','b']) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |