mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Fix tests failing on O2
This commit is contained in:
parent
6c1425701e
commit
92dca4fa1c
1 changed files with 14 additions and 10 deletions
|
|
@ -1039,11 +1039,13 @@ TEST("indexes()", function()
|
||||||
local count = table.create(3, 0)
|
local count = table.create(3, 0)
|
||||||
local unrelated_count = 0
|
local unrelated_count = 0
|
||||||
|
|
||||||
local function unrelated()
|
local unrelated = (function()
|
||||||
|
return function()
|
||||||
cleanup(function()
|
cleanup(function()
|
||||||
unrelated_count += 1
|
unrelated_count += 1
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
end)()
|
||||||
|
|
||||||
local output = indexes(input, function(v, i)
|
local output = indexes(input, function(v, i)
|
||||||
-- check that overriden cleanup scopes don't affect cleanup calls
|
-- check that overriden cleanup scopes don't affect cleanup calls
|
||||||
|
|
@ -1165,11 +1167,13 @@ TEST("values()", function()
|
||||||
local count = table.create(3, 0)
|
local count = table.create(3, 0)
|
||||||
local unrelated_count = 0
|
local unrelated_count = 0
|
||||||
|
|
||||||
local function unrelated()
|
local unrelated = (function()
|
||||||
|
return function()
|
||||||
cleanup(function()
|
cleanup(function()
|
||||||
unrelated_count += 1
|
unrelated_count += 1
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
end)()
|
||||||
|
|
||||||
local output = values(input, function(v, i)
|
local output = values(input, function(v, i)
|
||||||
-- check that overriden cleanup scopes don't affect cleanup calls
|
-- check that overriden cleanup scopes don't affect cleanup calls
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue