|
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) |
|
---|---|---|---|---|---|---|---|
app-UseCaseCompoundValues | 1/1 | 0/0 | 1/1 | 0/0 | 1/1 | 1/0 | 0/6 |
UseCaseCompoundValues-001[+]
X UseCaseCompoundValues-001: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare namespace i = "http://example.com/compound-values"; declare function i:complex($real as xs:double, $imaginary as xs:double) as map(xs:boolean, xs:double) { map { true() : $real, false() : $imaginary } }; declare function i:real($complex as map(xs:boolean, xs:double)) as xs:double { $complex(true()) }; declare function i:imaginary($complex as map(xs:boolean, xs:double)) as xs:double { $complex(false()) }; declare function i:add($arg1 as map(xs:boolean, xs:double), $arg2 as map(xs:boolean, xs:double)) as map(xs:boolean, xs:double){ i:complex(i:real($arg1)+i:real($arg2), i:imaginary($arg1)+i:imaginary($arg2)) }; declare function i:multiply($arg1 as map(xs:boolean, xs:double), $arg2 as map(xs:boolean, xs:double)) as map(xs:boolean, xs:double) { i:complex( i:real($arg1)*i:real($arg2) - i:imaginary($arg1)*i:imaginary($arg2), i:real($arg1)*i:imaginary($arg2) + i:imaginary($arg1)*i:real($arg2)) }; i:add(i:complex(2, 3), i:complex(1, -6)), i:multiply(i:complex(2, -1), i:complex(3, 4)) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |