Skip to content

Commit

Permalink
ask and test for relevant code information
Browse files Browse the repository at this point in the history
  • Loading branch information
alfert committed Sep 9, 2018
1 parent 2c50e41 commit 25f5adf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/coverex_source_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ defmodule CoverexSourceTest do
test "compile info " do
info = Coverex.Source.get_compile_info(@mod)

assert is_list(info)
assert Keyword.get(info, :options) == [:debug_info]
assert is_list(info)
path = Keyword.get(info, :source) |> to_string()
assert Path.extname(path) == ".ex"
assert Path.basename(path, ".ex") == "source"
end

test "source info" do
Expand Down

0 comments on commit 25f5adf

Please sign in to comment.