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 26, 2024
1 parent 3193ca6 commit 09617e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 36 deletions.
42 changes: 10 additions & 32 deletions test-files/golden-tests/requires-clause.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
= Reference
:mrdocs:


[#index]
== Global namespace

Expand All @@ -10,10 +8,10 @@
|===
| Name | Description

| xref:#A-09[`A`]
| <<#A-09,`A`>>
|

| xref:#A-05[`A`]
| <<#A-05,`A`>>
|

|===
Expand All @@ -22,15 +20,13 @@
|===
| Name | Description

| xref:f[`f`]
| <<#f,`f`>>
|
| xref:g[`g`]
| <<#g,`g`>>
|
|===


[#f]

== f


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

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

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


Expand All @@ -66,8 +62,6 @@ xref:#f-02[f]() requires pass:[(sizeof(U) == 2)];





[#f-04]
== f

Expand All @@ -91,8 +85,6 @@ f() requires pass:[(sizeof(T) == 4)];





[#f-0b]
== f

Expand All @@ -116,8 +108,6 @@ f() requires pass:[(sizeof(T) == 2)];





[#f-02]
== f

Expand All @@ -141,9 +131,7 @@ f() requires pass:[(sizeof(U) == 2)];




[#g]

== g


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

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

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


Expand All @@ -179,8 +167,6 @@ xref:#g-03[g]();





[#g-00]
== g

Expand All @@ -204,8 +190,6 @@ g();





[#g-04]
== g

Expand All @@ -229,8 +213,6 @@ g();





[#g-03]
== g

Expand All @@ -254,8 +236,6 @@ g();





[#A-09]
== A

Expand All @@ -274,8 +254,6 @@ struct A;





[#A-05]
== A

Expand Down
6 changes: 2 additions & 4 deletions test-files/golden-tests/requires-clause.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ <h2>Functions</h2>
<tbody>
<tr>
<td>
<a href="f"><code>f</code></a>
<a href="#f"><code>f</code></a>
</td><td>

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

</td>
Expand All @@ -65,7 +65,6 @@ <h2>Functions</h2>
</table>
</div>
</div>

<div id="f">

<h1>Overload set f</h1>
Expand Down Expand Up @@ -182,7 +181,6 @@ <h3>Synopsis</h3>


</div>

<div id="g">

<h1>Overload set g</h1>
Expand Down

0 comments on commit 09617e2

Please sign in to comment.