fix(assert): use unpredictable binding names in macros
Also translate macro vars to ALLCAPS for consistency.
This commit is contained in:
parent
e3b822c1a0
commit
6f8f21106b
|
@ -30,16 +30,16 @@
|
|||
)
|
||||
).
|
||||
|
||||
-define(assertInclude(Pattern, List),
|
||||
-define(assertInclude(PATTERN, LIST),
|
||||
?assert(
|
||||
lists:any(
|
||||
fun(El) ->
|
||||
case El of
|
||||
Pattern -> true;
|
||||
fun(X__Elem_) ->
|
||||
case X__Elem_ of
|
||||
PATTERN -> true;
|
||||
_ -> false
|
||||
end
|
||||
end,
|
||||
List
|
||||
LIST
|
||||
)
|
||||
)
|
||||
).
|
||||
|
|
Loading…
Reference in New Issue