fix(assert): use unpredictable binding names in macros

Also translate macro vars to ALLCAPS for consistency.
This commit is contained in:
Andrew Mayorov 2023-05-16 16:46:05 +03:00
parent e3b822c1a0
commit 6f8f21106b
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 5 additions and 5 deletions

View File

@ -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
) )
) )
). ).