Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 56 by
mzhal...@gmail.com: Expecting a sequence of mixed content
http://code.google.com/p/xspec/issues/detail?id=56
In my case I had to test a result of a function that returned a sequence
containing both xs:string and nodes.
My XSLT file contains:
<xsl:variable name="test" as="item()+">
<xsl:variable name="t" as="element()">
<c:expected/>
</xsl:variable>
<xsl:sequence select="'sdfs', $t"/>
</xsl:variable>
<xsl:function name="t:test" as="item()+">
<xsl:variable name="t" as="element()">
<c:actual/>
</xsl:variable>
<xsl:sequence select="'sdfs', $t"/>
</xsl:function>
And the XSPEC file:
<scenario label="Test">
<call function="t:test"/>
<expect select="$test"/>
</scenario>
Executing this test results in:
<x:scenario>
<x:label>Test</x:label>
<x:call function="t:test"/>
<x:result select="('sdfs', xs:anyAtomicType(''))"/>
<x:test successful="false">
<x:label/>
<x:result select="('sdfs', xs:anyAtomicType(''))"/>
<x:expect select="('sdfs', xs:anyAtomicType(''))"/>
</x:test>
</x:scenario>
which doesn't give a hint of what's wrong.
The attached file contains a fixed "test:report-value" template based on
xspec-0.4.0rc1.
Attachments:
generate-tests-utils.xsl 29.7 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings