We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x:label affects not only the expectation (#308) but also @test on XQuery.
x:label
@test
Put this .xspec file in [XSpec]/test/:
[XSpec]/test/
<?xml version="1.0" encoding="UTF-8"?> <x:description query="x-urn:test:do-nothing" query-at="do-nothing.xquery" stylesheet="do-nothing.xsl" xmlns:do-nothing="x-urn:test:do-nothing" xmlns:x="http://www.jenitennison.com/xslt/xspec"> <x:scenario label="When x:call returns a non-empty item"> <x:call function="exactly-one"> <x:param select="123" /> </x:call> <x:expect test="exists($x:result)"> <x:label>//x:expect[@test eq 'exists($x:result)'][empty(attribute() except @test)][x:label][empty(node() except (x:label | text()[not(normalize-space())]))] should be Success</x:label> </x:expect> </x:scenario> </x:description>
Running XSpec -t with it passes:
-t
passed: 1 / pending: 0 / failed: 0 / total: 1
Running -q fails:
-q
passed: 0 / pending: 0 / failed: 1 / total: 1
The text was updated successfully, but these errors were encountered:
Fix #438 (x:label affects attribute(test) eval on XQuery) (#439)
dd864fa
AirQuick
Successfully merging a pull request may close this issue.
x:label
affects not only the expectation (#308) but also@test
on XQuery.Put this .xspec file in
[XSpec]/test/
:Running XSpec
-t
with it passes:Running
-q
fails:The text was updated successfully, but these errors were encountered: