Skip to content

Commit

Permalink
Merge pull request #792 from ndw/nw-err-xs0100
Browse files Browse the repository at this point in the history
Test for the error that I failed to detect in nw-err-xs0071-001
  • Loading branch information
ndw authored Dec 27, 2024
2 parents 2ae4645 + 0846ea0 commit af51ab1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test-suite/tests/nw-err-xs0100-001.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
xmlns:err="http://www.w3.org/ns/xproc-error"
expected="fail" code="err:XS0100">
<t:info>
<t:title>Test nw-err-xs0100-001</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-12-27</t:date>
<t:author>
<t:name>Norm Tovey-Walsh</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Initial commit.</p>
</t:description>
</t:revision>
</t:revision-history>
</t:info>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Tests that <code>err:XS0100</code> is raised if <code>p:import</code> follows
a port binding.</p>
</t:description>

<t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:ex="http://test"
version="3.0">
<p:output port="result"/>

<p:import href="../pipelines/err-xs0071.xpl"/>

<p:identity>
<p:with-input><doc/></p:with-input>
</p:identity>
</p:declare-step>
</t:pipeline>
</t:test>

0 comments on commit af51ab1

Please sign in to comment.