diff --git a/lib/ex_parameterized/params.ex b/lib/ex_parameterized/params.ex index f0dfbbc..a651677 100644 --- a/lib/ex_parameterized/params.ex +++ b/lib/ex_parameterized/params.ex @@ -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 diff --git a/lib/ex_parameterized/params_callback.ex b/lib/ex_parameterized/params_callback.ex index 36bbfa1..3c3c05a 100644 --- a/lib/ex_parameterized/params_callback.ex +++ b/lib/ex_parameterized/params_callback.ex @@ -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 diff --git a/test/ex_parameterized_callback_test.exs b/test/ex_parameterized_callback_test.exs index 6644a99..ccc515d 100644 --- a/test/ex_parameterized_callback_test.exs +++ b/test/ex_parameterized_callback_test.exs @@ -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