Re: [elixir-core:11254] [proposal] ExUnit: A use case for specifying setup callback as MF(A)

2023-02-05 Thread Nikola Begedin
> Have you tried? > `setup(context), do: Module.function_name(context)` Oh how Yes, of course, that works perfectly well! I can't believe I never considered it. Cheers! On Sun, Feb 5, 2023 at 12:47 PM 'eksperimental' via elixir-lang-core < elixir-lang-core@googlegroups.com> wrote: > Hi Nikola

Re: [elixir-core:11253] [proposal] ExUnit: A use case for specifying setup callback as MF(A)

2023-02-05 Thread 'eksperimental' via elixir-lang-core
Hi Nikola Have you tried? `setup(context), do: Module.function_name(context)` Cheers. On Sun, 5 Feb 2023 03:21:12 -0800 (PST) Nikola Begedin wrote: > Hello everyone. 1st time writing here. I scanned through the repo > docs, etc, and I'm not finding a guideline on how to do it. Apologies > if I

[elixir-core:11253] [proposal] ExUnit: A use case for specifying setup callback as MF(A)

2023-02-05 Thread Nikola Begedin
Hello everyone. 1st time writing here. I scanned through the repo docs, etc, and I'm not finding a guideline on how to do it. Apologies if I'm making a mistake here. I have a proposal, or at least a question about a potential proposal. You can always import a function from a module and then use