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(
|
?assert(
|
||||||
lists:any(
|
lists:any(
|
||||||
fun(El) ->
|
fun(X__Elem_) ->
|
||||||
case El of
|
case X__Elem_ of
|
||||||
Pattern -> true;
|
PATTERN -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
List
|
LIST
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
).
|
).
|
||||||
|
|
Loading…
Reference in New Issue