Skip to content

Commit

Permalink
Merge pull request #755 from xml-project/fix-tests
Browse files Browse the repository at this point in the history
Changed expected error from XS0011 to XS0022
  • Loading branch information
xml-project authored Nov 12, 2024
2 parents f95a3f1 + acc70c1 commit b68c35b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
13 changes: 11 additions & 2 deletions test-suite/tests/ab-pipe-005.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XS0001">
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XS0022">
<t:info>
<t:title>pipe-005 (AB)</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-11-12</t:date>
<t:author>
<t:name>Achim Berndzen</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Changed expected error code from XS0001.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2019-05-31</t:date>
<t:author>
Expand All @@ -14,7 +23,7 @@
</t:revision-history>
</t:info>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Tests XS001 is raised if pipe on p:with-option contains loop to same step.</p>
<p>Tests XS022 is raised if pipe on p:with-option contains loop to same step.</p>
</t:description>
<t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
Expand Down
13 changes: 11 additions & 2 deletions test-suite/tests/ab-pipe-010.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XS0001">
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XS0022">
<t:info>
<t:title>pipe-010 (AB)</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-11-12</t:date>
<t:author>
<t:name>Achim Berndzen</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Changed expected error code from XS0001.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2019-05-31</t:date>
<t:author>
Expand All @@ -14,7 +23,7 @@
</t:revision-history>
</t:info>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Tests XS001 is raised if pipe on p:with-option contains loop to same step.</p>
<p>Tests XS0022 is raised if pipe on p:with-option contains loop to same step.</p>
</t:description>
<t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
Expand Down
15 changes: 12 additions & 3 deletions test-suite/tests/nw-err-xs0001-004.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
xmlns:err="http://www.w3.org/ns/xproc-error"
expected="fail" code="err:XS0001">
expected="fail" code="err:XS0022">
<t:info>
<t:title>Test err:XS0001 004</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-11-12</t:date>
<t:author>
<t:name>Achim Berndzen</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Changed expected error code from XS0001.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2019-07-13</t:date>
<t:author>
Expand All @@ -25,8 +34,8 @@
</t:revision-history>
</t:info>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Tests that <code>err:XS0001</code> is raised if a pipeline contains
a loop.</p>
<p>Tests that <code>err:XS0022</code> is raised if a pipeline refers to
its own output.</p>
</t:description>

<t:pipeline>
Expand Down

0 comments on commit b68c35b

Please sign in to comment.