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

Releases: KazuCocoa/ex_parameterized

1.3.7

08 Dec 06:04
Compare
Choose a tag to compare
  • fix nested tuple cases in a list #36
  test_with_params "nested tuple in a list", fn a, expected ->
    case a do
      [1, 0] ->
        assert {{1, 1}, 0, []} == expected

      [1, 0, 2] ->
        assert {{1, 1}, 0, [{2, 2}, {2, 2}]} == expected
    end
  end do
    [
      {
        [1, 0],
        {{1, 1}, 0, []}
      },
      {
        [1, 0, 2],
        {{1, 1}, 0, [{2, 2}, {2, 2}]}
      }
    ]
  end

1.3.6

08 Dec 06:06
Compare
Choose a tag to compare
  • Fix Does not work with nil tuples #32

1.3.5

22 Oct 14:13
9a0a926
Compare
Choose a tag to compare
  • support below syntax
  test_with_params "with map as second parameter", context, fn a, m ->
    assert a == "some"
    assert m.a == "world"
  end do
    [
      {"some", %{a: context[:hello], b: 2, c: 3}}
    ]
  end

1.3.4

06 Jul 13:37
Compare
Choose a tag to compare

Support

  test_with_params "ast from enum of maps", fn a ->
    assert a == %{b: 1, c: 2}
  end do
    Enum.map([{%{b: 1, c: 2}}, {%{b: 1, c: 2}}], fn x -> x end)
  end

1.3.3

06 Jul 13:21
Compare
Choose a tag to compare

Support Enum.map([%{...}])

  test_with_params "ast from enum of maps", fn a ->
    assert a == %{b: 1, c: 2}
  end do
    Enum.map([{%{b: 1, c: 2}}], fn x -> x end)
  end

1.3.2

04 Jul 14:10
Compare
Choose a tag to compare
  • Fix in multiple map's cases #23

1.3.1

15 Jan 15:54
Compare
Choose a tag to compare
  • Guard list #20

1.3.0

25 Jun 15:04
Compare
Choose a tag to compare
  • support 1.4.0+
  • fix some warnings in tests

1.2.0

15 Dec 22:42
Compare
Choose a tag to compare
  • fix handling map %{}

1.1.0: Merge pull request #8 from KazuCocoa/bump_up

06 Sep 15:00
Compare
Choose a tag to compare

support enumerable as parameter such as the following.

  test_with_params "ast from enum",
    fn (a) ->
      assert a == ["a", "b"]
    end do
      Enum.map([{["a", "b"]}], fn (x) -> x end)
  end

thanks @artburkart ! ( #4 )