You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
I am trying to use ExUnit.Parameterized. If I try to run the exact example module in the documentation, then I get a warning on this line:
# support Callback as `context`test_with_params"add params with context",context,fn(a,b,expected)->asserta+b==expectedenddo[{context[:value],2,3}# *** warning here]end
The warning is warning: variable "context" does not exist and is being expanded to "context()", please use parentheses to remove the ambiguity or change the variable name
Interestingly, if I disable warnings as errors the test runs and passes just fine.
Expected behavior
No warning is issued.
The text was updated successfully, but these errors were encountered:
Elixir and Erlang/OTP versions
Operating system
Linux (arch)
Current behavior
I am trying to use
ExUnit.Parameterized
. If I try to run the exact example module in the documentation, then I get a warning on this line:The warning is
warning: variable "context" does not exist and is being expanded to "context()", please use parentheses to remove the ambiguity or change the variable name
Interestingly, if I disable warnings as errors the test runs and passes just fine.
Expected behavior
No warning is issued.
The text was updated successfully, but these errors were encountered: