Change id: map-keys
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-function-lookup-819[+]
X fn-function-lookup-819: Created on: 2016-09-09 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: exists(function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions/map', 'keys'), 1)) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-820[+]
X fn-function-lookup-820: Created on: 2016-09-09 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions/map', 'keys'), 1)(map{}) |
no result | pass | pass | pass | pass | pass |
map-keys-001[+]
X map-keys-001: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map{}) |
pass | pass | pass | pass | pass | pass |
map-keys-002[+]
X map-keys-002: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:merge(())) |
pass | pass | pass | pass | pass | pass |
map-keys-003[+]
X map-keys-003: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map{"a":1}) |
pass | pass | pass | pass | pass | pass |
map-keys-004[+]
X map-keys-004: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:entry("a", "1")) |
pass | pass | pass | pass | pass | pass |
map-keys-005[+]
X map-keys-005: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:merge((map:entry("a", "1"), map:entry("b", 2)))) |
pass | pass | pass | pass | pass | pass |
map-keys-006[+]
X map-keys-006: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map{"a":1, "b":2}) |
pass | pass | pass | pass | pass | pass |
map-keys-007[+]
X map-keys-007: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map{"a":1, "a":2}) |
pass | pass | pass | pass | pass | pass |
map-keys-008[+]
X map-keys-008: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:merge((map:entry("a",1), map:entry("a",2)))) |
pass | pass | pass | pass | pass | pass |
map-keys-009[+]
X map-keys-009: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:remove(map{"a":1,"b":2}, "b")) |
pass | pass | pass | pass | pass | pass |
map-keys-010[+]
X map-keys-010: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:remove(map:entry(1,2),1)) |
pass | pass | pass | pass | pass | pass |
map-keys-011[+]
X map-keys-011: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:remove(map:remove(map{"a":1,"b":2},"b"),"a")) |
pass | pass | pass | pass | pass | pass |
map-keys-012[+]
X map-keys-012: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map{number('NaN'):1,"b":2}) |
pass | pass | pass | pass | pass | pass |
map-keys-013[+]
X map-keys-013: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:remove(map{"a":1,"b":2}, "c")) |
pass | pass | pass | pass | pass | pass |
map-keys-014[+]
X map-keys-014: Created on: 2011-03-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:keys(map:merge(for $n in 1 to 500000 return map:entry($n, $n+1))) |
pass | pass | pass | pass | pass | pass |
UseCaseR31-023[+]
X UseCaseR31-023: 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 namespace array = "http://www.w3.org/2005/xpath-functions/array"; let $input := json-doc('http://www.w3.org/qt3/app/UseCaseR31/employees-json') for $k in map:keys($input) return <department name="{ $k }"> { let $array := $input($k) for $i in 1 to array:size($array) let $emp := $array($i) return <employee> <firstName>{ $emp('firstName') }</firstName> <lastName>{ $emp('lastName') }</lastName> <age>{ $emp('age') }</age> </employee> } </department> |
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 |
d1e41301c[+]
X d1e41301c: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; map:keys($deptnames) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e63783[+]
X d1e63783: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; declare variable $map2 := map {1:"first"}; declare variable $map3 := map {}; map:keys($map1) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e63796[+]
X d1e63796: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; declare variable $map2 := map {1:"first"}; declare variable $map3 := map {}; map:keys($map2) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e63807[+]
X d1e63807: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; declare variable $map2 := map {1:"first"}; declare variable $map3 := map {}; map:keys($map3) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |