Skip to content

Commit

Permalink
Add a test for maps to test equality of key/values
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnovalles committed Nov 13, 2023
1 parent 64034a2 commit d8bed17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/meck_args_matcher_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ from_empty_args_test() ->
?assertMatch(true, meck_args_matcher:match([], ArgsMatcher)),
?assertMatch(false, meck_args_matcher:match([1, 2, 3], ArgsMatcher)).

from_map_args_test() ->
ArgsMatcher = meck_args_matcher:new([1, 2, #{a => 2, b => 3, c => 4}]),
?assertMatch(true, meck_args_matcher:match([1, 2, #{a => 2, b => 3, c => 4}], ArgsMatcher)).

matcher_featured_test() ->
ArgsSpec = [meck:is(fun(X) -> X == 1 end),
2,
Expand Down

0 comments on commit d8bed17

Please sign in to comment.