Skip to content

Commit fc8e1c0

Browse files
committed
promote markdown generator tests
Signed-off-by: lubegasimon <lubegasimon73@gmail.com>
1 parent 9ffa3eb commit fc8e1c0

File tree

176 files changed

+5749
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+5749
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AliasX
2+
3+
Module `` Alias.X ``
4+
5+
###### type t = int
6+
7+
Module Foo__X documentation. This should appear in the documentation for the alias to this module 'X'

test/generators/markdown/Alias.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Alias
2+
3+
Module `` Alias ``
4+
5+
###### module X : sig
6+
7+
######     type t = int
8+
9+
Module Foo__X documentation. This should appear in the documentation for the alias to this module 'X'
10+
11+
###### end
12+

test/generators/markdown/Bugs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Bugs
2+
3+
Module `` Bugs ``
4+
5+
###### type 'a opt = 'a option
6+
7+
###### val foo : ?bar:'a -> unit -> unit
8+
9+
Triggers an assertion failure when https://github.com/ocaml/odoc/issues/101 is not fixed.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Bugs_post_406let_open'
2+
3+
Class `` Bugs_post_406.let_open' ``
4+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Bugs_post_406
2+
3+
Module `` Bugs_post_406 ``
4+
5+
Let-open in class types, https://github.com/ocaml/odoc/issues/543 This was added to the language in 4.06
6+
###### class type let_open = object
7+
###### end
8+
9+
###### class let_open' : object
10+
###### end
11+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Classempty_virtual'
2+
3+
Class `` Class.empty_virtual' ``
4+

test/generators/markdown/Class.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Class
2+
3+
Module `` Class ``
4+
5+
###### class type empty = object
6+
###### end
7+
8+
###### class type mutually = object
9+
###### end
10+
11+
###### class type recursive = object
12+
###### end
13+
14+
###### class mutually' : object
15+
###### end
16+
17+
###### class recursive' : object
18+
###### end
19+
20+
###### class type virtual empty_virtual = object
21+
###### end
22+
23+
###### class virtual empty_virtual' : object
24+
###### end
25+
26+
###### class type 'a polymorphic = object
27+
###### end
28+
29+
###### class 'a polymorphic' : object
30+
###### end
31+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Classmutually'
2+
3+
Class `` Class.mutually' ``
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Classpolymorphic'
2+
3+
Class `` Class.polymorphic' ``
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Classrecursive'
2+
3+
Class `` Class.recursive' ``
4+

0 commit comments

Comments
 (0)