Skip to content

Commit

Permalink
update the test module and promote tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lubegasimon committed Dec 19, 2021
1 parent bfd8ba7 commit 408dcc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
21 changes: 10 additions & 11 deletions test/integration/markdown.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

######     type t

Doc for type t .
Doc for `type t`

######     type a = t

Expand All @@ -39,8 +39,6 @@

######         type foo

docs for x

######         type bar'

######         module type Foo' = sig
Expand All @@ -51,12 +49,14 @@

######                 | Mon

first day of the week.
Docs for `days`

######             type num = [

######                 | `One

Docs for `` `One``

######             ]

######         end
Expand All @@ -75,7 +75,7 @@

######         fname : string ;

first name
Docs for `fname`

######         lname : string ;

Expand Down Expand Up @@ -183,7 +183,7 @@

######     type t

Doc for type t .
Doc for `type t`

<a id="type-a"></a>

Expand Down Expand Up @@ -215,8 +215,6 @@

######         type foo

docs for x

<a id="type-bar'"></a>

######         type bar'
Expand All @@ -237,7 +235,7 @@

######                 | Mon

first day of the week.
Docs for `days`

<a id="type-num"></a>

Expand All @@ -247,6 +245,8 @@

######                 | `One

Docs for `` `One``

######             ]

######         end
Expand Down Expand Up @@ -275,7 +275,7 @@

######         fname : string ;

first name
Docs for `fname`

<a id="type-name.lname"></a>

Expand Down Expand Up @@ -365,4 +365,3 @@
- Mon

- Tue

7 changes: 3 additions & 4 deletions test/integration/markdown.t/test.mli
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,22 @@ end

module type Foo = sig
type foo
(** docs for x *)

include Bar'

module type Foo' = sig
type foo'

type days = Mon (** first day of the week. *)
type days = Mon (** Docs for [days]. *)

type num = [ `One ]
type num = [ `One (** Docs for [`One]*)]
end
end

type other_names = { given : string; nickname : string }

type name = {
fname : string; (** first name *)
fname : string; (** Docs for [fname] *)
lname : string;
others : other_names;
}
Expand Down

0 comments on commit 408dcc1

Please sign in to comment.