eunit icon indicating copy to clipboard operation
eunit copied to clipboard

No support for parameterized modules

Open richcarl opened this issue 13 years ago • 0 comments

Reported by Joern Barthel.

When compiling parameterized modules an exception is thrown.

Example:

-module(foo, [ Bar ]). -compile([export_all]). -include_lib("eunit/include/eunit.hrl").

foo() -> Bar.

foo_test() -> ?assertMatch("foo!", (foo:new("foo!")):foo().

Exception:

./foo.erl:none: error in parse transform 'eunit_autoexport': {{badarg,{foo,['Bar ']}}, [{packages,concat_1,1}, {eunit_autoexport,rewrite,2}, {eunit_autoexport,rewrite,2}, {compile, '-foldl_transform/2-anonymous-2- ', 2}, {compile,foldl_transform,2}, {compile, '-internal_comp/4-anonymous-1-', 2}, {compile,fold_comp,3}, {compile,internal_comp,4}]} error

Environment: R11B-5 win32

richcarl avatar Jul 28 '11 19:07 richcarl