Skip to content

Commit

Permalink
Mark warnings from test/baselines/sources/namespaces.html as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Jun 18, 2023
1 parent bcd4b36 commit cd6e743
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/baselines/generated-reference/namespaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ <h1><span class="secnum">1.1</span> Clause 1.1</h1>
</emu-production>
</emu-grammar>

<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=clause`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-clause id="c111" aoid="SomeAlg">
<h1><span class="secnum">1.1.1</span> SomeAlg</h1>
</emu-clause>
Expand All @@ -63,10 +65,14 @@ <h1><span class="secnum">A</span> Annex</h1>
</emu-rhs>
</emu-production>
</emu-grammar>
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=annex`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id="annex11" aoid="SomeAlg">
<h1><span class="secnum">A.1</span> SomeAlg</h1>
</emu-annex>

<!-- FIXME: Shouldn't this be allowed by `namespace=annex2`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id="annex12" aoid="SomeAlg" namespace="annex2">
<h1><span class="secnum">A.2</span> Annex 1.2</h1>
<p><emu-xref aoid="SomeAlg" id="_ref_3"><a href="#i1">SomeAlg</a></emu-xref> should link to #annex12. <emu-nt id="_ref_12"><a href="#prod-annex-Foo">Foo</a></emu-nt> should link to the production in #annex1.</p>
Expand All @@ -78,6 +84,7 @@ <h1><span class="secnum">A.2</span> Annex 1.2</h1>

<emu-annex id="annex2" namespace="annex">
<h1><span class="secnum">B</span> Annex 2</h1>
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id="annex21" aoid="SomeAlg">
<h1><span class="secnum">B.1</span> SomeAlg</h1>
</emu-annex>
Expand Down
7 changes: 7 additions & 0 deletions test/baselines/sources/namespaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1>Clause 1.1</h1>
`bar` MainProd `baz`
</emu-grammar>

<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=clause`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-clause id=c111 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-clause>
Expand All @@ -42,10 +44,14 @@ <h1>Annex</h1>
Foo ::
`bar` MainProd `baz`
</emu-grammar>
<!-- FIXME: Shouldn't this be allowed by the preceding `namespace=annex`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id=annex11 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-annex>

<!-- FIXME: Shouldn't this be allowed by `namespace=annex2`? -->
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id=annex12 aoid=SomeAlg namespace=annex2>
<h1>Annex 1.2</h1>
<p>SomeAlg should link to #annex12. |Foo| should link to the production in #annex1.</p>
Expand All @@ -59,6 +65,7 @@ <h1>Annex 1.2</h1>

<emu-annex id=annex2 namespace=annex>
<h1>Annex 2</h1>
<!-- EXPECT_WARNING { "ruleId": "duplicate-definition", "message": "duplicate definition \"SomeAlg\"" } -->
<emu-annex id=annex21 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-annex>
Expand Down

0 comments on commit cd6e743

Please sign in to comment.