Change id: array-square-constructor
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-avg-10[+]
X fn-avg-10: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: avg([1,2,3,4,5]) |
pass | pass | pass | pass | pass | pass |
boolean-010[+]
X boolean-010: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: boolean([true()]) |
pass | pass | pass | pass | pass | pass |
boolean-010b[+]
X boolean-010b: Created on: 2015-04-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:boolean([]) |
pass | pass | pass | pass | pass | pass |
fn-data-2[+]
X fn-data-2: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: data([]) |
pass | pass | pass | pass | pass | pass |
fn-data-3[+]
X fn-data-3: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: data([1,2,3]) |
pass | pass | pass | pass | pass | pass |
fn-data-4[+]
X fn-data-4: Created on: 2014-10-14 Spec Dependencies: spec = XQ31+ Test: data([<a>1</a>, <a>2</a>, <a>3</a>]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
fn-data-5[+]
X fn-data-5: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: data([(1,2), (3,4), (5,6)]) |
pass | pass | pass | pass | pass | pass |
fn-data-6[+]
X fn-data-6: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: data([[1,2], [3,4], [5,6], []]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-1[+]
X fn-deep-equal-arrays-1: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([], []) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-2[+]
X fn-deep-equal-arrays-2: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([1,2], [1,2]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-3[+]
X fn-deep-equal-arrays-3: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([[]], [[]]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-4[+]
X fn-deep-equal-arrays-4: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([], [1]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-5[+]
X fn-deep-equal-arrays-5: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([1], 1) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-6[+]
X fn-deep-equal-arrays-6: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([], [()]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-7[+]
X fn-deep-equal-arrays-7: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([()], [()]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-8[+]
X fn-deep-equal-arrays-8: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([map{}], [map{}]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-9[+]
X fn-deep-equal-arrays-9: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([map{1:1, 2:2}], [map{2:2, 1:1}]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-10[+]
X fn-deep-equal-arrays-10: Created on: 2014-10-14 Spec Dependencies: spec = XQ31+ Test: fn:deep-equal([<a>1</a>], [<a>1</a>]) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
fn-deep-equal-arrays-11[+]
X fn-deep-equal-arrays-11: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([['a', 'b', 'c']], [['a', 'b', 'c']]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-12[+]
X fn-deep-equal-arrays-12: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal([['a', 'b', 'c']], [['A', 'B', 'C']]) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-arrays-13[+]
X fn-deep-equal-arrays-13: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ feature = simple-uca-fallback Test: fn:deep-equal([['a', 'b', 'c']], [['A', 'B', 'C']], 'http://www.w3.org/2013/collation/UCA?strength=secondary') |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-9[+]
X fn-deep-equal-maps-9: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{12:[1,2,3]}, map{12.0:[1.0, 2.0, 3.0]}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-10[+]
X fn-deep-equal-maps-10: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{12:[1,2,3]}, map{12:[3,2,1]}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-11[+]
X fn-deep-equal-maps-11: Created on: 2014-10-14 Spec Dependencies: spec = XQ31+ Test: fn:deep-equal(map{12:<a x='2' y='3'>23</a>}, map{12:<a y='3' x='2'>23</a>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
SquareArray-001[+]
X SquareArray-001: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: [] |
no result | pass | pass | pass | pass | pass |
SquareArray-003[+]
X SquareArray-003: Created on: 2014-10-28 Spec Dependencies: spec = XP31+ XQ31+ Test: array:size([(), ('A', 'B', 'C'), 'D']) |
no result | pass | pass | pass | pass | pass |
SquareArray-005[+]
X SquareArray-005: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: declare function local:fun() {1 to 5}; array:size([local:fun()]) |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
SquareArray-007[+]
X SquareArray-007: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare function local:fun() {1 to 5}; [local:fun()](1) |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
SquareArray-009[+]
X SquareArray-009: Created on: 2014-10-28 Spec Dependencies: spec = XQ31+ Test: declare function local:fun() {1 to 5}; [local:fun()]?1 |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-008[+]
X UseCaseJSON-008: Created on: 2014-12-23 Spec Dependencies: spec = XP31+ XQ31+ Test: array { for $page in doc($uri)//page return map { "title": string($page/title), "id" : string($page/id), "last updated" : string($page/revision[1]/timestamp), "authors" : array { for $a in $page/revision/contributor/username return string($a) } } } |
pass | pass | pass | pass | pass | pass |
UseCaseJSON-009[+]
X UseCaseJSON-009: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare variable $data := map { "color" : "blue", "closed" : true(), "points" : [[10,10], [20,10], [20,20], [10,20]] }; declare variable $stroke := attribute stroke { $data("color") }; declare variable $points := attribute points { array:flatten($data("points")) }; if ($data("closed")) then <svg><polygon>{ $stroke, $points }</polygon></svg> else <svg><polyline>{ $stroke, $points }</polyline></svg> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseR31-013[+]
X UseCaseR31-013: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; <s> { for $w in $s?* return <w pos="{ $w(2) }">{ $w(1) }</w> } </s> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-014[+]
X UseCaseR31-014: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; declare variable $index := map { "pos" : 2, "lemma" : 1 }; <s> { for $w in $s?* return <w pos="{ $w($index("pos")) }">{ $w($index("lemma")) }</w> } </s> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-015[+]
X UseCaseR31-015: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; declare variable $index := map { "pos" : 2, "lemma" : 1 }; for $word in $s?* let $pos := $word(2) let $lexeme := $word(1) where $pos = ("JJ", "NN", "RB", "VB") group by $pos order by $pos return <pos name="{$pos}"> { for $l in distinct-values($lexeme) return <lexeme>{ $l }</lexeme> } </pos> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-016[+]
X UseCaseR31-016: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; declare function local:words-only($s) { for $w in $s where not($w(2) = (".", ",", ";", ":")) return $w(1) }; for sliding window $w in local:words-only($s?*) start at $i when true() only end at $j when $j - $i eq 2 return array { $w } |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-017[+]
X UseCaseR31-017: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; declare function local:filter($s as item()*, $p as function(item()) as xs:boolean) { array { $s[$p(.)] }, array { $s[not($p(.))] } }; let $f := function($a) { starts-with($a(2), "VB") } return local:filter($s?*, $f) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-018[+]
X UseCaseR31-018: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare variable $s :=[['A', 'DT'], ['bride', 'NN'], [',', ','], ['you', 'PRP'], ['know', 'VBP'], [',', ','], ['must', 'MD'], ['appear', 'VB'], ['like', 'IN'], ['a', 'DT'], ['bride', 'NN'], [',', ','], ['but', 'CC'], ['my', 'PRP$'], ['natural', 'JJ'], ['taste', 'NN'], ['is', 'VBZ'], ['all', 'DT'], ['for', 'IN'], ['simplicity', 'NN'], [';', ':'], ['a', 'DT'], ['simple', 'JJ'], ['style', 'NN'], ['of', 'IN'], ['dress', 'NN'], ['is', 'VBZ'], ['so', 'RB'], ['infinitely', 'RB'], ['preferable', 'JJ'], ['to', 'TO'], ['finery', 'VB'], ['.', '.'] ]; declare function local:filter($s as item()*, $p as function(item()) as xs:boolean) { map { true() : array { $s[$p(.)] }, false() : array { $s[not($p(.))] } } }; let $f := function($a) { starts-with($a(2), "VB") } return local:filter($s?*, $f) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41624[+]
X d1e41624: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: [ "a", "b", "c" ] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41663[+]
X d1e41663: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: [["a", "b", "c"], "d" ] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |