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(
lists:any(
fun(El) ->
case El of
Pattern -> true;
fun(X__Elem_) ->
case X__Elem_ of
PATTERN -> true;
_ -> false
end
end,
List
LIST
)
)
).