Change id: map-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) |
---|---|---|---|---|---|---|
boolean-011[+]
X boolean-011: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: boolean(map{}) |
pass | pass | pass | pass | pass | pass |
boolean-014[+]
X boolean-014: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: boolean(map{0:"false", 1:"true"}) |
pass | pass | pass | pass | pass | pass |
fn-data-7[+]
X fn-data-7: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: data([[1,2], [3,4], [5,6], [map{1:2}]]) |
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-maps-1[+]
X fn-deep-equal-maps-1: 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-maps-2[+]
X fn-deep-equal-maps-2: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:2}, map{}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-3[+]
X fn-deep-equal-maps-3: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{}, map{1:()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-4[+]
X fn-deep-equal-maps-4: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:true(), 2:false()}, map{2:false(), 1:true()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-5[+]
X fn-deep-equal-maps-5: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:true()}, map{1.0:true()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-6[+]
X fn-deep-equal-maps-6: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:true()}, map{1.0e0:true()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-7[+]
X fn-deep-equal-maps-7: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{xs:double('NaN'):true()}, map{xs:double('NaN'):true()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-8[+]
X fn-deep-equal-maps-8: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{xs:double('NaN'):true()}, map{xs:float('NaN'):true()}) |
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 |
fn-deep-equal-maps-12[+]
X fn-deep-equal-maps-12: 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' z='1'>23</a>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
fn-deep-equal-maps-13[+]
X fn-deep-equal-maps-13: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{"a":1}, map{"A":1}, 'http://www.w3.org/2013/collation/UCA?strength=secondary') |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-14[+]
X fn-deep-equal-maps-14: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:"a"}, map{1:"A"}, 'http://www.w3.org/2013/collation/UCA?strength=secondary') |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-15[+]
X fn-deep-equal-maps-15: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:deep-equal(map{1:"A"}, map:remove(map{1:"A", 2:"B"}, 2)) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-16[+]
X fn-deep-equal-maps-16: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: let $t := xs:dateTime('2014-10-14T11:31:12') return let $u := adjust-dateTime-to-timezone($t, implicit-timezone()) return fn:deep-equal(map{$t :()}, map{$u :()}) |
pass | pass | pass | pass | pass | pass |
fn-deep-equal-maps-17[+]
X fn-deep-equal-maps-17: Created on: 2014-10-14 Spec Dependencies: spec = XP31+ XQ31+ Test: let $t := xs:dateTime('2014-10-14T11:31:12') return let $u := adjust-dateTime-to-timezone($t, implicit-timezone()+xs:dayTimeDuration('PT1H')) return fn:deep-equal(map{$t :()}, map{$u :()}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-001[+]
X MapConstructor-001: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-002[+]
X MapConstructor-002: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{ }) |
pass | pass | pass | pass | pass | pass |
MapConstructor-003[+]
X MapConstructor-003: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map {}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-004[+]
X MapConstructor-004: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{"a":2}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-005[+]
X MapConstructor-005: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{ "a" : 2 }) |
pass | pass | pass | pass | pass | pass |
MapConstructor-006[+]
X MapConstructor-006: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{"a":2,"b":3}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-007[+]
X MapConstructor-007: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map { "a" : 2 , "b" : 3 }) |
pass | pass | pass | pass | pass | pass |
MapConstructor-008[+]
X MapConstructor-008: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map {"a":2, }) |
pass | pass | pass | pass | pass | pass |
MapConstructor-009[+]
X MapConstructor-009: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map {,"a":2}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-010[+]
X MapConstructor-010: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map {"a","b":2}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-011[+]
X MapConstructor-011: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map {"a":2,3}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-012[+]
X MapConstructor-012: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(map {<a>x</a>:2}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-013[+]
X MapConstructor-013: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(map {2:<a>x</a>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-014[+]
X MapConstructor-014: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(map {2:<a>x{25}y</a>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-015[+]
X MapConstructor-015: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(<a><b>x</b></a>/map{b:2}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-016[+]
X MapConstructor-016: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace b = "http://b.com"; map:size(<a><b:b>x</b:b></a>/map{b:b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-017[+]
X MapConstructor-017: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(<a><b>x</b></a>/map{self::a: b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-018[+]
X MapConstructor-018: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://a.com"; map:size(<a><a:b>x</a:b></a>/map{self::a:b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-019[+]
X MapConstructor-019: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(<a><b>x</b></a>/map{*:b:b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-020[+]
X MapConstructor-020: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(<a><b>x</b></a>/map{* :b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-021[+]
X MapConstructor-021: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: map:size(<a><self>x</self></a>/map{self:2}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-022[+]
X MapConstructor-022: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{2:map{3:4}}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-023[+]
X MapConstructor-023: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{(1 to 5)[. gt year-from-date(current-date())]:93}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-024[+]
X MapConstructor-024: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:size(map{(1 to 5)[. lt year-from-date(current-date())]:93}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-025[+]
X MapConstructor-025: Created on: 2016-02-08 Spec Dependencies: spec = XP31+ XQ31+ Test: let $m := map{'a':1} return map:size(map{$m?a:true()}) |
pass | pass | pass | pass | pass | pass |
MapConstructor-026[+]
X MapConstructor-026: Created on: 2016-02-08 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace z = "http://z.com"; map:size(<a><z:b>x</z:b></a>/map{z:b:z:b}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-027[+]
X MapConstructor-027: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> <c>value</c> </dot> ! map{a:b:c} => deep-equal(map{"key":<c>value</c>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-028[+]
X MapConstructor-028: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> <c>value</c> </dot> ! map{a:*:c} => deep-equal(map{"key":<c>value</c>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-029[+]
X MapConstructor-029: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> <c>value</c> </dot> ! map{*:b:c} => deep-equal(map{"key":<c>value</c>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-030[+]
X MapConstructor-030: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> </dot> ! map{a:b:*} => deep-equal(map{"key":<a:b xmlns:a="http://example.com">key</a:b>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-031[+]
X MapConstructor-031: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> </dot> ! map{a:*:*} => deep-equal(map{"key":<a:b xmlns:a="http://example.com">key</a:b>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-032[+]
X MapConstructor-032: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: declare namespace a = "http://example.com"; <dot> <a:b>key</a:b> </dot> ! map{*:b:*} => deep-equal(map{"key":<a:b xmlns:a="http://example.com">key</a:b>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-033[+]
X MapConstructor-033: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: <e><f>foo</f></e> ! map{*:*} => deep-equal(map{"foo":<f>foo</f>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-034[+]
X MapConstructor-034: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: <e><f>foo</f></e> ! map{*:f:*:f} => deep-equal(map{"foo":<f>foo</f>}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-035[+]
X MapConstructor-035: Created on: 2016-05-04 Spec Dependencies: spec = XQ31+ spec = XP31+ XQ31+ Test: <e><f>4</f></e>!map{*:*div*,*||*:*} => deep-equal(map{"44":<f>4</f>,"4":1}) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
MapConstructor-036[+]
X MapConstructor-036: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{2+2: "a", 5-1: "b"} |
no result | pass | pass | pass | pass | pass |
MapConstructor-037[+]
X MapConstructor-037: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:integer(2): 5, xs:float("2.0"): 8} |
no result | pass | pass | pass | pass | pass |
MapConstructor-038[+]
X MapConstructor-038: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:double("NaN"): true(), xs:float("NaN"): false()} |
no result | pass | pass | pass | pass | pass |
MapConstructor-039[+]
X MapConstructor-039: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:double("INF"): true(), xs:float("INF"): false()} |
no result | pass | pass | pass | pass | pass |
MapConstructor-040[+]
X MapConstructor-040: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:double("-INF"): true(), xs:float("-INF"): false()} |
no result | pass | pass | pass | pass | pass |
MapConstructor-041[+]
X MapConstructor-041: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:time("24:00:00"): true(), xs:time("00:00:00"): false()} |
no result | pass | pass | pass | pass | pass |
MapConstructor-042[+]
X MapConstructor-042: Created on: 2016-07-28 Spec Dependencies: spec = XP31+ XQ31+ Test: map{xs:time("05:00:00+05:00"): true(), xs:time("00:00:00Z"): false()} |
no result | pass | pass | pass | pass | pass |
MapTest-001[+]
X MapTest-001: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{} instance of map(*) |
pass | pass | pass | pass | pass | pass |
MapTest-002[+]
X MapTest-002: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London"} instance of map(*) |
pass | pass | pass | pass | pass | pass |
MapTest-003[+]
X MapTest-003: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London", "London":1} instance of map(*) |
pass | pass | pass | pass | pass | pass |
MapTest-004[+]
X MapTest-004: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{} instance of map(xs:integer, xs:string) |
pass | pass | pass | pass | pass | pass |
MapTest-005[+]
X MapTest-005: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London"} instance of map(xs:integer, xs:string) |
pass | pass | pass | pass | pass | pass |
MapTest-006[+]
X MapTest-006: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London", "London":1} instance of map(xs:integer, xs:string) |
pass | pass | pass | pass | pass | pass |
MapTest-007[+]
X MapTest-007: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London"} instance of map(xs:integer) |
pass | pass | pass | pass | pass | pass |
MapTest-008[+]
X MapTest-008: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{1:"London"} instance of map(integer, string) |
pass | pass | pass | pass | pass | pass |
MapTest-009[+]
X MapTest-009: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:remove(map{1:"London", "London":1}, "London") instance of map(xs:integer, xs:string) |
pass | pass | pass | pass | pass | pass |
MapTest-010[+]
X MapTest-010: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:put(map{1:"London", 2:"Paris"}, 3, current-date()) instance of map(xs:integer, xs:string) |
pass | pass | pass | pass | pass | pass |
MapTest-011[+]
X MapTest-011: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map:put(map{1:"London", 2:"Paris"}, 3, "Berlin") instance of map(xs:decimal, xs:string+) |
pass | pass | pass | pass | pass | pass |
MapTest-012[+]
X MapTest-012: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":(), "Paris":(), "Berlin":()} instance of map(xs:string, empty-sequence()) |
pass | pass | pass | pass | pass | pass |
MapTest-013[+]
X MapTest-013: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":(), "Paris":(), "Berlin":(), "Rome":5} instance of map(xs:string, empty-sequence()) |
pass | pass | pass | pass | pass | pass |
MapTest-014[+]
X MapTest-014: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":1, "Paris":2, "Berlin":3, "Rome":()} instance of map(xs:string, xs:integer?) |
pass | pass | pass | pass | pass | pass |
MapTest-015[+]
X MapTest-015: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":1, "Paris":2, "Berlin":3, "Rome":()} instance of map(xs:string, xs:integer+) |
pass | pass | pass | pass | pass | pass |
MapTest-016[+]
X MapTest-016: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":1, "Paris":2, "Berlin":3, "Rome":5} instance of map(xs:string+, xs:integer+) |
pass | pass | pass | pass | pass | pass |
MapTest-017[+]
X MapTest-017: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: map{"London":1, "Paris":2, "Berlin":3, "Rome":5} instance of map(xs:string, xs:integer+)* |
pass | pass | pass | pass | pass | pass |
MapTest-018[+]
X MapTest-018: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{"London":1, "Paris":2, "Berlin":3, "Rome":5}, map{}) instance of map(xs:string, xs:integer+)* |
pass | pass | pass | pass | pass | pass |
MapTest-019[+]
X MapTest-019: Created on: 2014-10-08 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{"London":1, "Paris":2, "Berlin":3, "Rome":5}, map{}) instance of map(xs:string, xs:integer+)? |
pass | pass | pass | pass | pass | pass |
MapTest-020[+]
X MapTest-020: Created on: 2014-10-08 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: let $f := function($m as map(xs:integer, xs:integer)) as xs:boolean { map:contains($m, 17) } return $f(map{17: xs:untypedAtomic('234')}) |
pass | pass | pass | pass | pass | pass |
xqhof20[+]
X xqhof20: Created on: 2015-07-16 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: let $m := map { "Tuesday" : true(), "Wednesday" : true(), "Thursday" : false(), "Friday" : true(), "Monday" : true(), "Sunday" : false(), "Saturday" : false() } let $days := ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday") return fn:filter($days,$m) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
xqhof21[+]
X xqhof21: Created on: 2015-07-16 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: let $m := map { "Tuesday" : true(), "Wednesday" : true(), "Friday" : true(), "Monday" : true(), "Sunday" : false(), "Saturday" : false() } let $days := ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday") return fn:filter($days,$m) |
pass | 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 |
UseCaseJSON-012[+]
X UseCaseJSON-012: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: let $users := [map { "userid" : "W0342", "firstname" : "Walter", "lastname" : "Denisovich" }, map { "userid" : "M0535", "firstname" : "Mick", "lastname" : "Goulish" }]?* let $holdings := [map { "userid" : "W0342", "ticker" : "DIS", "shares" : 153212312 }, map { "userid" : "M0535", "ticker" : "DIS", "shares" : 10 }, map { "userid" : "M0535", "ticker" : "AIG", "shares" : 23412 }]?* return array { for $u in $users order by $u("userid") return map { "userid" : $u("userid"), "first" : $u("firstname"), "last" : $u("lastname"), "holdings" : array { for $h in $holdings where $h("userid") = $u("userid") order by $h("ticker") return map { "ticker" : $h("ticker"), "share" : $h("shares") } } } } |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-002[+]
X UseCaseNLP-002: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare variable $index := map { "pos" : 2, "lemma" : 1 }; <s> { for $w in json-doc('speech-representation.json')?* return <w pos="{ $w($index("pos")) }">{ $w($index("lemma")) }</w> } </s> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-003[+]
X UseCaseNLP-003: Created on: 2014-12-30 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: array { for $w in json-doc('speech-representation.json')?* return map { "pos" : $w(2), "lemma" : $w(1) } } |
pass | pass | pass | pass | pass | pass |
UseCaseR31-002[+]
X UseCaseR31-002: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: for $e in /employees/employee, $d in $e/department group by $d return map { "department" : $d, "highest paid employee" : let $max := max($e/salary) return $e[salary=$max]/name/text()} |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-004[+]
X UseCaseR31-004: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; for $employee in /employees/employee let $salary := $employee/salary group by $department := $employee/department let $max-salary := max($salary) let $highest-earners := $employee[salary = $max-salary] return map{ "first" : map { "department" : $department, "highest earners" : $highest-earners/name/text() } , "job type count" : map:merge( for $employee in /employees/employee let $salary := $employee/salary group by $job-type := $employee/employeeType let $totals := count($employee) return map { $job-type : $totals } )} |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-012[+]
X UseCaseR31-012: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare function local:play( $secret-number as xs:integer, $guessed-number as xs:integer, $translator as function(xs:string) as xs:string) { switch (true()) case $guessed-number eq $secret-number return $translator("You won!") case $guessed-number lt $secret-number return $translator("The secret number is greater.") default (: $guessed-number gt $secret-number :) return $translator("The secret number is lower.") }; local:play(76, 86, function($x) { $x }), (: Keep English :) local:play(76, 86, map { "You won!" : "Du hast gewonnen!", "The secret number is greater." : "Die geheime Zahl ist groesser.", "The secret number is lower." : "Die geheime Zahl ist kleiner." } ) |
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-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 |
UseCaseR31-025[+]
X UseCaseR31-025: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare function local:deep-put($input as item()*, $key as xs:string, $value as item()*) as item()* { let $mf := function($k, $v) { if ($k eq $key) then map{$k : $value} else map{$k : local:deep-put($v, $key, $value)} } for $i in $input return if ($i instance of map(*)) then map:merge(map:for-each($i, $mf)) else if ($i instance of array(*)) then array{ local:deep-put($i?*, $key, $value) } else $i }; local:deep-put(json-doc("http://www.w3.org/qt3/app/UseCaseR31/bookinfo-json"), "first", "John") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-029[+]
X UseCaseR31-029: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; let $sats := json-doc("http://www.w3.org/qt3/app/UseCaseR31/satellites-json")("satellites") return map { "visible" : array { map:keys($sats)[$sats(.)("visible")] }, "invisible" : array { map:keys($sats)[not($sats(.)("visible"))] } } |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-034-err[+]
X UseCaseR31-034-err: Created on: 2015-09-17 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: let $mf := function($k as node(), $v) { map{$k('book') : $v} } return $mf(json-doc("http://www.w3.org/qt3/app/UseCaseR31/bookinfo-json"), "first") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e40951[+]
X d1e40951: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: deep-equal(map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" },map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e40984[+]
X d1e40984: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: deep-equal( map { "ACC": map { "name": "Accessories", "code": 300 } , "WMN": map { "name": "Women's", "code": 310 } , "MEN": map { "name": "Men's", "code": 320 } },map { "ACC": map { "name": "Accessories", "code": 300 } , "WMN": map { "name": "Women's", "code": 310 } , "MEN": map { "name": "Men's", "code": 320 } }) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41029[+]
X d1e41029: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: deep-equal(map:merge(for $p in doc("catalog.xml")//product return map:entry(string($p/number), string($p/name))), map {"557":"Fleece Pullover", "563":"Floppy Sun Hat", "443":"Deluxe Travel Bag", "784":"Cotton Dress Shirt"}) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41041[+]
X d1e41041: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; declare variable $deptinfo := map { "ACC": map { "deptname": "Accessories", "deptnum": 300 } , "WMN": map { "deptname": "Women's", "deptnum": 310 } , "MEN": map { "deptname": "Men's", "deptnum": 320 } }; "inserted for testing prolog only examples" |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41054b[+]
X d1e41054b: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; $deptnames?("ACC") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41094[+]
X d1e41094: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; for $prod in doc("catalog.xml")//product return <product num="{$prod/number}" dept-name="{$deptnames?($prod/@dept)}"/> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41148[+]
X d1e41148: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptinfo := map { "ACC": map { "deptname": "Accessories", "deptnum": 300 } , "WMN": map { "deptname": "Women's", "deptnum": 310 } , "MEN": map { "deptname": "Men's", "deptnum": 320 } }; for $prod in doc("catalog.xml")//product return <product num="{$prod/number}" dept-name="{$deptinfo?($prod/@dept)?("deptname")}" dept-code="{$deptinfo?($prod/@dept)?("deptnum")}"/> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41190[+]
X d1e41190: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; for $d in ("ACC","MEN") return $deptnames?($d) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e42362[+]
X d1e42362: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; declare option output:method "json"; map { "number": 557, "properties": <props> <length>31</length> <height>12</height> </props> } |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |