Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Mar 19, 2021
1 parent da6c25c commit 7735cd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ex_doc/formatter/html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ defmodule ExDoc.Formatter.HTMLTest do

content = File.read!("#{output_dir()}/CustomBehaviourOne-callback-greet.html")
assert content =~ "You're seeing just the callback <code>greet</code>"

assert Path.wildcard("#{output_dir()}/CompiledWithDocs-*slashes.html") == []
end

test "generates all listing files" do
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/compiled_with_docs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ defmodule CompiledWithDocs do
# Check that delegate autogenerate docs
defdelegate flatten(hello), to: List

def unquote(:"name/with/slashes")(), do: :ok

defmodule Nested do
end
end

0 comments on commit 7735cd5

Please sign in to comment.