We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126c5eb commit 9a086f8Copy full SHA for 9a086f8
README.md
@@ -150,6 +150,36 @@ f:should_be_called_with(1):
150
end)
151
```
152
153
+## Match Arguments Using Deep Compare
154
+
155
+```lua
156
+local mach = require 'mach'
157
158
+local f = mach.mockFunction();
159
160
+f:should_be_called_with(mach.match({ 1, 2, 3 })):
161
+ when(function()
162
+ f({ 1, 2, 3 })
163
+ end)
164
+```
165
166
+## Match Arguments Using Custom Matcher
167
168
169
170
171
+local custom_matcher = function(a, b)
172
+ return a == b
173
+end
174
175
176
177
+f:should_be_called_with(mach.match({ 1, 2, 3 }, custom_matcher)):
178
179
180
181
182
183
## Ignoring Other calls
184
185
```javascript
0 commit comments