Skip to content

Commit

Permalink
[FOLD] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Nov 22, 2024
1 parent d510f46 commit 9146f2c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 85 deletions.
38 changes: 22 additions & 16 deletions test-files/golden-tests/requires-clause.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@
== Global namespace

=== Types
[cols=2,separator=¦]
[cols=2]
|===
¦Name ¦Description
¦xref:#A-09[`A`] ¦

¦xref:#A-05[`A`] ¦

| Name | Description

| xref:#A-09[`A`]
|

| xref:#A-05[`A`]
|

|===
=== Functions
[cols=2,separator=¦]
[cols=2]
|===
¦Name ¦Description
¦xref:f[`f`] ¦
¦xref:g[`g`] ¦
| Name | Description

| xref:f[`f`]
|
| xref:g[`g`]
|
|===


Expand All @@ -36,21 +42,21 @@
----
template<typename T>
void
xref:#f-04[pass:[f]]() requires (sizeof(T) == 4);
xref:#f-04[f]() requires (sizeof(T) == 4);
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T>
void
xref:#f-0b[pass:[f]]() requires (sizeof(T) == 2);
xref:#f-0b[f]() requires (sizeof(T) == 2);
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename U>
void
xref:#f-02[pass:[f]]() requires (sizeof(U) == 2);
xref:#f-02[f]() requires (sizeof(U) == 2);
----


Expand Down Expand Up @@ -149,21 +155,21 @@ f() requires (sizeof(U) == 2);
----
template<typename T> requires (sizeof(T) == 4)
void
xref:#g-00[pass:[g]]();
xref:#g-00[g]();
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(T) == 2)
void
xref:#g-04[pass:[g]]();
xref:#g-04[g]();
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename U> requires (sizeof(U) == 2)
void
xref:#g-03[pass:[g]]();
xref:#g-03[g]();
----


Expand Down
124 changes: 55 additions & 69 deletions test-files/golden-tests/requires-clause.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,61 @@
<h2>Global namespace</h2>
</div>
<div>
<div>
<h3> Types</h3>
<table>
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<h2> Types</h2>
<table style="table-layout: fixed; width: 100%;">
<thead>
<tr>
<td>
<a href="#A-09">A</a>
</td>
<td>

</td>
</tr> <tr>
<td>
<a href="#A-05">A</a>
</td>
<td>

</td>
</tr> </tbody>
</table>
</div>
<div>
<h3>Functions</h3>
<table>
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<th>Name</th>
<th>Description</th>


</tr>
</thead>
<tbody>
<tr>
<td>
<a href="f">f</a>
</td>
<td>
</td>
</tr> <tr>
<td>
<a href="g">g</a>
</td>
<td>
</td>
</tr> </tbody>
</table>
</div>
</div>
<td>
<a href="#A-09"><code>A</code></a>
</td><td>


</td>
</tr><tr>
<td>
<a href="#A-05"><code>A</code></a>
</td><td>


</td>
</tr>
</tbody>
</table>
<h2>Functions</h2>
<table style="table-layout: fixed; width: 100%;">
<thead>
<tr>
<th>Name</th>
<th>Description</th>


</tr>
</thead>
<tbody>
<tr>
<td>
<a href="f"><code>f</code></a>
</td><td>

</td>
</tr><tr>
<td>
<a href="g"><code>g</code></a>
</td><td>

</td>
</tr>
</tbody>
</table>
</div>
</div>

<div id="f">
Expand Down Expand Up @@ -119,7 +113,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -148,7 +141,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -177,7 +169,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -239,7 +230,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -268,7 +258,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -297,7 +286,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand Down Expand Up @@ -326,7 +314,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand All @@ -336,7 +323,7 @@ <h3>Synopsis</h3>
</div>

<div>
</div>
</div>


</div>
Expand All @@ -355,7 +342,6 @@ <h3>Synopsis</h3>
Declared in <code><requires-clause.cpp></code>
</span>
</p>

</code>
</div>
<pre class="source-code cpp">
Expand All @@ -365,7 +351,7 @@ <h3>Synopsis</h3>
</div>

<div>
</div>
</div>


</div>
Expand Down

0 comments on commit 9146f2c

Please sign in to comment.