Change id: unary-lookup
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) |
---|---|---|---|---|---|---|
UnaryLookup-001[+]
X UnaryLookup-001: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b'], ['c', 'd'])[?1 eq 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-002[+]
X UnaryLookup-002: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: let $i := 1 return (['a', 'b'], ['c', 'd'])[?($i) eq 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-003[+]
X UnaryLookup-003: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b'], ['c', 'd'])[ ? 001 eq 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-004[+]
X UnaryLookup-004: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b'], ['c', 'd'])[ ? -1 eq 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-005[+]
X UnaryLookup-005: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b'], ['c', 'd'])[ ?0 eq 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-006[+]
X UnaryLookup-006: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b'], ['c', 'd'], ['e'])[ ?2 eq 'b'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-007[+]
X UnaryLookup-007: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[ ?(1 to 2) = 'b'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-008[+]
X UnaryLookup-008: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: let $i := (1, 3) return (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[ ?($i) = 'b'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-009[+]
X UnaryLookup-009: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[ ?first = 'b'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-010[+]
X UnaryLookup-010: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: let $d := current-date() return (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[ ?($d) = 'b'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-011[+]
X UnaryLookup-011: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $d := function($x) {$x + ?2} return $d(12) |
pass | pass | pass | pass | pass | pass |
UnaryLookup-012[+]
X UnaryLookup-012: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (1 to 10)[?1 = 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-013[+]
X UnaryLookup-013: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: (floor#1, ceiling#1, round#1, abs#1)[?1 = 1] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-014[+]
X UnaryLookup-014: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[ ?* = 'c'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-015[+]
X UnaryLookup-015: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: ([1, [2], [3]], [[2], 2, [4]])[ ?1 = ?2 ] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-016[+]
X UnaryLookup-016: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[contains(?1, ?, 'http://www.w3.org/2005/xpath-functions/collation/codepoint')('a')] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-017[+]
X UnaryLookup-017: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[contains(?1, ?)('a')] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-018[+]
X UnaryLookup-018: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[?1.0 = 'a'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-019[+]
X UnaryLookup-019: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[?(1.0) = 'a'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-020[+]
X UnaryLookup-020: Created on: 2014-11-27 Spec Dependencies: spec = XQ31+ feature = schemaValidation Test: let $x := (validate type xs:integer {<x>1</x>}, validate type xs:integer {<y>2</y>}) return (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[?($x) = 'b'] |
no result | n/a
notXP31 |
pass | n/a | pass | pass |
UnaryLookup-021[+]
X UnaryLookup-021: Created on: 2014-11-27 Spec Dependencies: spec = XQ31+ Test: let $x := (<x>1</x>, <y>2</y>) return (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[?($x) = 'b'] |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UnaryLookup-022[+]
X UnaryLookup-022: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: [['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b']]?*[?1 = 'a'] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-023[+]
X UnaryLookup-023: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: [['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b']]!?*!?1 |
pass | pass | pass | pass | pass | pass |
UnaryLookup-024[+]
X UnaryLookup-024: Created on: 2014-11-27 Spec Dependencies: spec = XQ31+ Test: let $x := (<x>1</x>, <y>2</y>) return $x / ?1 |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UnaryLookup-025[+]
X UnaryLookup-025: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (['a', 'b', 'c'], ['b', 'c', 'd'], ['e', 'f', 'b'])[exists(?())] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-040[+]
X UnaryLookup-040: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{'a':1, 'b':2, 'c':3}, map{'a':2, 'b':3, 'c':4})[?b eq 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-041[+]
X UnaryLookup-041: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1:1, 2:2, 3:3}, map{1:2, 2:3, 3:4})[?2 eq 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-042[+]
X UnaryLookup-042: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1:1, 2:2, 3:3}, map{1:2, 2:3, 3:4})[?(1 to 2) = 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-043[+]
X UnaryLookup-043: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{'a-1':1, 'b-1':2, 'c-1':3}, map{'a-1':2, 'b-1':3, 'c-1':4})[?b-1 eq 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-044[+]
X UnaryLookup-044: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{'a-1':1, 'b-1':2, 'c-1':3}, map{'a-1':2, 'b-1':3, 'c-1':4})[? (:confusing?:) b-1 eq 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-045[+]
X UnaryLookup-045: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1:1, 2:2, 3:3}, map{1:2, 2:3, 3:4})[?* = 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-046[+]
X UnaryLookup-046: Created on: 2014-11-27 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1:1, 2:2, 3:3}, map{1:2, 2:3, 3:4})[exists(?())] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-047[+]
X UnaryLookup-047: Created on: 2015-07-17 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1.1:1, 2.2:2, 3.3:3}, map{1.1:2, 2.2:3, 3.3:4})[?2.2 = 3] |
pass | pass | pass | pass | pass | pass |
UnaryLookup-048[+]
X UnaryLookup-048: Created on: 2015-07-17 Spec Dependencies: spec = XP31+ XQ31+ Test: (map{1.1:1, 2.2:2, 3.3:3}, map{1.1:2, 2.2:3, 3.3:4})[?(2.2) = 3]?(3.3) |
pass | pass | pass | pass | pass | pass |
UseCaseR31-022[+]
X UseCaseR31-022: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: json-doc("http://www.w3.org/qt3/app/UseCaseR31/mildred-json")?phone?*[?type = 'mobile']?number |
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-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 |
d1e41271[+]
X d1e41271: 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 } }; deep-equal( $deptinfo?*[?deptname = "Accessories"], map { "deptname": "Accessories", "deptnum": 300 }) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41301[+]
X d1e41301: 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 } }; $deptinfo?*[?deptname = "Accessories"]?deptnum |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e41709g[+]
X d1e41709g: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: declare variable $array-of-ints := [10,20,30]; declare variable $array-of-arrays := [ ["a","b","c"], ["d","e","f"] ]; $array-of-arrays?*[?2 = "b"] |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |