Skip to content

Commit 6a0276d

Browse files
committed
Add test
1 parent fb004af commit 6a0276d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/ex_doc/language/erlang_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ defmodule ExDoc.Language.ErlangTest do
1212
~s|<a href="bar.html"><code>bar</code></a>|
1313
end
1414

15+
test "current module", c do
16+
assert autolink_doc("{@link foo}", [current_module: :foo], c) ==
17+
~s|<a href="foo.html#content"><code>foo</code></a>|
18+
end
19+
1520
test "OTP module", c do
1621
assert autolink_doc("{@link array}", c) ==
1722
~s|<a href="https://erlang.org/doc/man/array.html"><code>array</code></a>|

0 commit comments

Comments
 (0)