Skip to content

Commit

Permalink
test: Verify multiple argument matching for :have-been-called-with
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Dec 8, 2023
1 parent 21c2260 commit b18ab7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test-buttercup.el
Original file line number Diff line number Diff line change
Expand Up @@ -717,14 +717,15 @@ text properties using `ansi-color-apply'."
(i-spy-with-my-little-eye 123)
(i-spy-with-my-little-eye 456)
(i-spy-with-my-little-eye 789)
(i-spy-with-my-little-eye 789 789)
(i-spy-with-my-little-eye 'ABC)
(i-spy-with-my-little-eye 'DEF)
(i-spy-with-my-little-eye 'HIJ)
(i-spy-with-my-little-eye 'KLM)
(expect (buttercup--apply-matcher
:to-have-been-called-with
(mapcar #'buttercup--wrap-expr '('i-spy-with-my-little-eye 789)))
:to-be-truthy))
(mapcar #'buttercup--wrap-expr '('i-spy-with-my-little-eye 789 789)))
:to-equal t))
(it "should match if the spy has been called multiple times with the specified arguments"
(dotimes (x 10)
(i-spy-with-my-little-eye 123)
Expand Down

0 comments on commit b18ab7f

Please sign in to comment.