Add spy-arg-matcher for more complex matching of spy arguments#234
Add spy-arg-matcher for more complex matching of spy arguments#234Fuco1 wants to merge 1 commit intojorgenschaefer:masterfrom
Conversation
|
I like the idea, but I don't like the syntax. It would be cool if we could use |
|
I would argue against pcase or at least that we provide other syntax. Many people including myself find the pcase syntax quite complicated to read.
Something like adding |
|
The current (expect 'foo :to-have-been-called-with 1 2 3)That makes it difficult to make a pattern matching matcher, how do I see that (expect 'foo :to-have-been-called-with 1 'predfunc 3)is supposed to use (expect 'foo :to-have-been-called-matching '(1 2 3))
(expect 'foo :to-have-been-called-matching 'predfunc)and easily see that I agree that |
|
Well, you wouldn't say |
More matchers to add for inspiration for example from Mockery: http://docs.mockery.io/en/latest/reference/argument_validation.html?highlight=matchers#additional-argument-matchers