Skip to content

Commit 918a527

Browse files
committed
Add a test for search links in module aliases
Signed-off-by: Paul-Elliot <peada@free.fr>
1 parent 0b1e129 commit 918a527

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module X = struct
2+
let x = 1
3+
end
4+
5+
module Y = X

test/search/module_aliases.t/run.t

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Compile the files
2+
3+
$ ocamlc -c main.ml -bin-annot -I .
4+
5+
Compile and link the documentation
6+
7+
$ odoc compile main.cmt
8+
$ odoc link main.odoc
9+
$ odoc compile-index main.odocl
10+
11+
We have a problem: The ID for Y generates an URL to a file which is not
12+
generated (as the module does not have an expansion).
13+
14+
$ cat index.json | jq | grep url |grep Y
15+
"url": "Main/Y/index.html",
16+
17+
$ odoc html-generate -o html main.odocl && ls Main/Y/index.html
18+
ls: cannot access 'Main/Y/index.html': No such file or directory
19+
[2]

0 commit comments

Comments
 (0)