Skip to content

Commit 411cc8a

Browse files
committed
promote pre-410 tests
Signed-off-by: Paul-Elliot <[email protected]>
1 parent 10ae266 commit 411cc8a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/generators/html/Bugs_pre_410.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ <h1>Module <code><span>Bugs_pre_410</span></code></h1>
2626
<a href="#val-foo'" class="anchor"></a>
2727
<code>
2828
<span><span class="keyword">val</span> foo' :
29-
<span>?bar:<span class="type-var">'a</span>
30-
<span class="arrow">&#45;&gt;</span>
29+
<span><span class="optlabel">?bar</span>:
30+
<span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span>
3131
</span> <span>unit <span class="arrow">&#45;&gt;</span></span>
3232
unit
3333
</span>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\section{Module \ocamlinlinecode{Bugs\_\allowbreak{}pre\_\allowbreak{}410}}\label{module-Bugs_pre_410}%
22
\label{module-Bugs_pre_410-type-opt'}\ocamlcodefragment{\ocamltag{keyword}{type} 'a opt' = int option}\\
3-
\label{module-Bugs_pre_410-val-foo'}\ocamlcodefragment{\ocamltag{keyword}{val} foo' : ?bar:\ocamltag{type-var}{'a} \ocamltag{arrow}{$\rightarrow$} unit \ocamltag{arrow}{$\rightarrow$} unit}\begin{ocamlindent}Similar to \ocamlinlinecode{Bugs}, but the printed type of \ocamlinlinecode{\textasciitilde{}bar} should be \ocamlinlinecode{int}, not \ocamlinlinecode{'a}. This probably requires fixing in the compiler. See \href{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}\footnote{\url{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}}.\end{ocamlindent}%
3+
\label{module-Bugs_pre_410-val-foo'}\ocamlcodefragment{\ocamltag{keyword}{val} foo' : \ocamltag{optlabel}{?bar}:\ocamltag{type-var}{'a} \ocamltag{arrow}{$\rightarrow$} unit \ocamltag{arrow}{$\rightarrow$} unit}\begin{ocamlindent}Similar to \ocamlinlinecode{Bugs}, but the printed type of \ocamlinlinecode{\textasciitilde{}bar} should be \ocamlinlinecode{int}, not \ocamlinlinecode{'a}. This probably requires fixing in the compiler. See \href{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}\footnote{\url{https://github.com/ocaml/odoc/pull/230\#issuecomment-433226807}}.\end{ocamlindent}%
44
\medbreak
55

66

test/generators/man/Bugs_pre_410.3o

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Bugs_pre_410
1313
.nf
1414
\f[CB]type\fR 'a opt' = int option
1515
.sp
16-
\f[CB]val\fR foo' : ?bar:\f[CB]'a\fR \f[CB]\->\fR unit \f[CB]\->\fR unit
16+
\f[CB]val\fR foo' : \f[CB]?bar\fR:\f[CB]'a\fR \f[CB]\->\fR unit \f[CB]\->\fR unit
1717
.fi
1818
.br
1919
.ti +2

0 commit comments

Comments
 (0)