Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Fix unused variable warnings and typo (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume George <guillaume@kkvesper.jp>
  • Loading branch information
LysanderGG authored and KazuCocoa committed Jul 4, 2018
1 parent d837f2b commit aa6b5e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ex_parameterized/params.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule ExUnit.Parameterized.Params do
defp param_with_index(list) when is_list(list) do
Enum.zip(list, 0..Enum.count(list))
end
defp param_with_index(list) do
defp param_with_index(_) do
raise(ArgumentError, message: "Unsupported format")
end
end
2 changes: 1 addition & 1 deletion lib/ex_parameterized/params_callback.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule ExUnit.Parameterized.ParamsCallback do
defp param_with_index(list) when is_list(list) do
Enum.zip(list, 0..Enum.count(list))
end
defp param_with_index(list) do
defp param_with_index(_) do
raise(ArgumentError, message: "Unsupported format")
end
end
2 changes: 1 addition & 1 deletion test/ex_parameterized_callback_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule ExParameterizedParamsCallbackTest do
""")
end

@tag skip: "If failed to skip, test will fai"
@tag skip: "If failed to skip, test will fail"
test_with_params "skipped test with context", context, fn a ->
assert a == true
end do
Expand Down

0 comments on commit aa6b5e5

Please sign in to comment.