kenny-evitt/ex_parameterized

Try newest version (1.3.7+) of `ExParameterized` and confirm whether it resolves "invalid quoted expression" error

Closed this issue · 4 comments

Running into a related problem while using 1.3.7:

defmodule ReproTest do
  use ExUnit.Case
  use ExUnit.Parameterized

  test_with_params "reproduce",
                   fn _ ->
                     assert true
                   end do
    [
      {[%{}]}
    ]
  end
end
 == Compilation error in file test/repro_test.exs ==
 ** (CompileError) test/repro_test.exs: invalid quoted expression: %{}
 
 Please make sure your quoted expressions are made of valid AST nodes. If you would like to introduce a value into the AST, such as a four-element tuple or a map, make sure to call Macro.escape/1 before
     (stdlib 3.16.1) lists.erl:1358: :lists.mapfoldl/3
     (stdlib 3.16.1) lists.erl:1359: :lists.mapfoldl/3
     test/repro_test.exs:5: (module)
     (stdlib 3.16.1) erl_eval.erl:685: :erl_eval.do_apply/6

@nCrazed This is just a private fork – I don't have the 'personal bandwidth' to offer any support. (I also haven't added any commits to this repo either.)

I created this issue as a personal 'todo', and I don't remember now whether I confirmed that the changes the original author made (to the upstream repo) fixed my original issue. Based on the original issue – in the GitHub project for the upstream repo – I was working on the 2019 Advent of Code puzzles; the relevant test module:

@nCrazed No worries!