Skip to content

Commit cae5b3e

Browse files
committed
address test
1 parent 940c903 commit cae5b3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/ex_doc/language/erlang_test.exs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,11 @@ defmodule ExDoc.Language.ErlangTest do
807807
assert autolink_spec(~s"-spec foo() -> fun((...) -> t()) | erlang_bar:t().", c) ==
808808
~s[foo() -> fun((...) -> <a href="#t:t/0">t</a>()) | <a href="erlang_bar.html#t:t/0">erlang_bar:t</a>().]
809809

810-
assert autolink_spec(~s"-type foo() :: fun((...) -> any()) | [any()].", c) ==
811-
"foo() :: fun((...) -> <a href=\"https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\">any</a>()) | " <>
812-
"[<a href=\"https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\">any</a>()]."
810+
if Version.match?(System.version(), ">= 1.18.0-rc") do
811+
assert autolink_spec(~s"-type foo() :: fun((...) -> any()) | [any()].", c) ==
812+
"foo() :: fun((...) -> <a href=\"https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\">any</a>()) | " <>
813+
"[<a href=\"https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\">any</a>()]."
814+
end
813815
end
814816

815817
test "local type", c do

0 commit comments

Comments
 (0)