Skip to content

Commit c7ddd98

Browse files
committed
Update README.md
1 parent 068addc commit c7ddd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ f:should_be_called_with(mach.match({ 1, 2, 3 })):
169169
local mach = require 'mach'
170170

171171
local custom_matcher = function(a, b)
172-
return a == b
172+
return a[1] == b[1]
173173
end
174174

175175
local f = mach.mockFunction();
176176

177177
f:should_be_called_with(mach.match({ 1, 2, 3 }, custom_matcher)):
178178
when(function()
179-
f({ 1, 2, 3 })
179+
f({ 1, 4, 9 })
180180
end)
181181
```
182182

0 commit comments

Comments
 (0)