Change id: map-put
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-825[+]
X fn-function-lookup-825: 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', 'put'), 3)) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-826[+]
X fn-function-lookup-826: 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', 'put'), 3)(map{}, "foo", 1 to 5) |
no result | pass | pass | pass | pass | pass |
map-put-002-hof[+]
X map-put-002-hof: Created on: 2015-02-27 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ XT30+ Test: map:put(map{}, "foo", 1 to 5) |
pass | pass | pass | pass | pass | pass |
map-put-002[+]
X map-put-002: Created on: 2015-02-27 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map{}, "foo", 1 to 5) |
pass | pass | pass | pass | pass | pass |
map-put-003-hof[+]
X map-put-003-hof: Created on: 2014-05-13 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ XT30+ Test: map:put(map{}, "foo", 1 to 5) |
fail | pass | pass | pass | pass | pass |
map-put-003[+]
X map-put-003: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map{}, "foo", 1 to 5) |
pass | pass | pass | pass | pass | pass |
map-put-004[+]
X map-put-004: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map:entry("foo", 1 to 5), "bar", 6 to 10) |
pass | pass | pass | pass | pass | pass |
map-put-006[+]
X map-put-006: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map:entry("foo", 3), "foo", 4) |
pass | pass | pass | pass | pass | pass |
map-put-007[+]
X map-put-007: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: let $foo := map:entry("foo", 3), $foobar := map:put($foo, "foo", 4) return ($foobar, $foo)[2] |
pass | pass | pass | pass | pass | pass |
map-put-008[+]
X map-put-008: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: let $foo := map:merge(for $i in 1 to 20 return map:entry($i, $i*$i)), $foobar := map:put($foo, 8, 63) return ($foobar, $foo)[2] |
pass | pass | pass | pass | pass | pass |
map-put-010[+]
X map-put-010: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map{}, 1, 2) |
pass | pass | pass | pass | pass | pass |
map-put-011[+]
X map-put-011: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map{3 : "three"}, xs:float('3.0'), "threeF") |
pass | pass | pass | pass | pass | pass |
map-put-012[+]
X map-put-012: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put(map:merge(for $n in distinct-values(/*//*/node-name()) return map:entry($n, /*//*[node-name() eq $n])), node-name(/*), /*) |
pass | pass | pass | pass | pass | pass |
map-put-013[+]
X map-put-013: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: map:put( map:merge(for $n in 1 to 20 return map:entry($n, map{$n : string($n), $n+1 : string($n+1), $n+2 : string($n+2)})), 21, map{21 : '21'}) |
pass | pass | pass | pass | pass | pass |
map-put-017[+]
X map-put-017: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: deep-equal(map{"a":1}, map:put(map{}, 'a', 1)) |
pass | pass | pass | pass | pass | pass |
map-put-018[+]
X map-put-018: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: deep-equal(map:put(map{"a":1,"b":2,"c":(3,4,5)}, "d", 6), map:put(map{"d":6,"c":(3,4,5),"a":1}, "b", 2)) |
pass | pass | pass | pass | pass | pass |
map-put-019[+]
X map-put-019: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: deep-equal(map{}, map:remove(map:put(map:merge(()), 1, 2), 1)) |
pass | pass | pass | pass | pass | pass |
map-put-020[+]
X map-put-020: Created on: 2014-05-13 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: deep-equal(map:put(map:merge(for $i in 1 to 1000 return map:entry($i, $i+1)), 1001, 1002), map:merge(for $i in 1 to 1001 return map:entry($i, $i+1))) |
pass | pass | pass | pass | pass | pass |
map-put-021[+]
X map-put-021: Created on: 2015-06-10 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ XT30+ Test: map{} => map:put(xs:double('NaN'), 10) => map:put(xs:float('NaN'), 20) => map:size() |
pass | pass | pass | pass | pass | pass |
map-put-022[+]
X map-put-022: Created on: 2015-06-10 Spec Dependencies: spec = XP31+ XQ31+ XT30+ Test: deep-equal(map{xs:double('NaN'): 10}, map{xs:float('NaN'):10e0}) |
pass | pass | pass | pass | pass | pass |
map-put-023[+]
X map-put-023: Created on: 2015-06-10 Spec Dependencies: spec = XP31+ XQ31+ spec = XP31+ XQ31+ XT30+ Test: map{xs:float('1.0'):0, xs:double('1.00000000001'):1} => map:put(xs:decimal('1.0000000000100000000001'), 2) => map:size() |
pass | pass | pass | pass | pass | pass |
UseCaseR31-033[+]
X UseCaseR31-033: 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 $dbj := json-doc("http://www.w3.org/qt3/app/UseCaseR31/users2-json")[ .("name") = "Deadbeat Jim" ] return map:put($dbj, "status", "credit card declined") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41301d[+]
X d1e41301d: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; deep-equal(map:put($deptnames,"SHO","Shoes"), map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's", "SHO" : "Shoes" } ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41301e[+]
X d1e41301e: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $deptnames := map { "ACC" : "Accessories", "WMN" : "Women's", "MEN" : "Men's" }; deep-equal(map:put($deptnames,"ACC","Other"), map { "ACC" : "Other", "WMN" : "Women's", "MEN" : "Men's" } ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e70867[+]
X d1e70867: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; deep-equal( map:put($map1, 1, "ONE"), map {1:"ONE", 2:"second"} ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e70878[+]
X d1e70878: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; deep-equal( map:put($map1, 3, "third"), map {1:"first", 2:"second", 3:"third"} ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e70889[+]
X d1e70889: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $map1 := map {1:"first", 2:"second"}; deep-equal( map:put($map1, "abc", "def"), map {1:"first", 2:"second", "abc":"def"} ) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |