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 aa289f1 commit b28744bCopy full SHA for b28744b
src/mach/Expectation.lua
@@ -43,13 +43,13 @@ function expectation:when(thunk)
43
error('incomplete expectation', 2)
44
end
45
46
- local current = 1
+ local current_call_index = 1
47
48
local function called(m, name, args)
49
local valid_function_found = false
50
local incomplete_expectation_found = false
51
52
- for i = current, #self._calls do
+ for i = current_call_index, #self._calls do
53
local call = self._calls[i]
54
55
if call:function_matches(m) then
@@ -61,7 +61,7 @@ function expectation:when(thunk)
61
62
63
if call:has_fixed_order() then
64
- current = i
+ current_call_index = i
65
66
67
table.remove(self._calls, i)
0 commit comments