Skip to content

Commit

Permalink
Fix tests by tagging known elixir related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jun 3, 2018
1 parent d6b7c99 commit 035c3fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions test/credo/check/consistency/space_in_parentheses_test.exs
Expand Up @@ -15,8 +15,6 @@ defmodule Credo.Check.Readability.SpaceInParenthesesTest do
parse_code(t, {:some_tuple, 1})
parse_code(t, acc <> ~s(\"\"\"))
%{"some-atom-with-quotes": "#{filename} world"}
end
defp count([], acc), do: acc
defp count([?( | t], acc), do: count(t, acc + 1)
Expand Down
1 change: 1 addition & 0 deletions test/credo/code/token_test.exs
Expand Up @@ -171,6 +171,7 @@ defmodule Credo.Code.TokenTest do
assert @heredoc_interpolations_position == position
end

@tag needs_elixir: "1.7.0"
test "should give correct token position for map" do
source = ~S(%{"some-atom-with-quotes": "#{filename} world"})
tokens = Credo.Code.to_tokens(source)
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.exs
Expand Up @@ -5,7 +5,7 @@ Credo.Test.Application.start([], [])
ExUnit.start()

check_version =
~w(1.6.5)
~w(1.6.5 1.7.0)
|> Enum.reduce([], fn version, acc ->
# allow -dev versions so we can test before the Elixir release.
if System.version() |> Version.match?("< #{version}-dev") do
Expand Down

0 comments on commit 035c3fb

Please sign in to comment.