defmodule KiraTest.ExampleTest do
use ExUnit.Case
use ExUnit.Parameterized
describe "nil example" do
test_with_params "should be working, but does not work",
fn (first, second) ->
assert first == second
end do
[
{1, 1},
{2, 2}
]
end
end
end
And it works fine.
Now, let's add one more case {nil, nil}:
defmodule KiraTest.ExampleTest do
use ExUnit.Case
use ExUnit.Parameterized
describe "nil example" do
test_with_params "should be working, but does not work",
fn (first, second) ->
assert first == second
end do
[
{1, 1},
{2, 2},
{nil, nil}
]
end
end
end
I have this very simple test case:
Code
And it works fine.
Now, let's add one more case
{nil, nil}
:Output
Version information
I am using:
And
{:ex_parameterized, "~> 1.3.5", only: :test},