mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
This commit is contained in:
parent
0e439f084f
commit
fe3af737be
11 changed files with 249 additions and 79 deletions
|
|
@ -1431,31 +1431,31 @@ TEST("strict", function()
|
|||
local indexes, values = vide.indexes, vide.values
|
||||
local cleanup = vide.cleanup
|
||||
|
||||
do CASE "error on derived callback yield"
|
||||
local state = source(1)
|
||||
-- do CASE "error on derived callback yield"
|
||||
-- local state = source(1)
|
||||
|
||||
local ok = pcall(function()
|
||||
local _derived = derive(function()
|
||||
coroutine.yield()
|
||||
return state()
|
||||
end)
|
||||
end)
|
||||
-- local ok = pcall(function()
|
||||
-- local _derived = derive(function()
|
||||
-- coroutine.yield()
|
||||
-- return state()
|
||||
-- end)
|
||||
-- end)
|
||||
|
||||
CHECK(not ok)
|
||||
end
|
||||
-- CHECK(not ok)
|
||||
-- end
|
||||
|
||||
do CASE "error on watcher callback yield"
|
||||
local state = source(1)
|
||||
-- do CASE "error on watcher callback yield"
|
||||
-- local state = source(1)
|
||||
|
||||
local ok = pcall(function()
|
||||
local _derived = watch(function()
|
||||
coroutine.yield()
|
||||
state()
|
||||
end)
|
||||
end)
|
||||
-- local ok = pcall(function()
|
||||
-- local _derived = watch(function()
|
||||
-- coroutine.yield()
|
||||
-- state()
|
||||
-- end)
|
||||
-- end)
|
||||
|
||||
CHECK(not ok)
|
||||
end
|
||||
-- CHECK(not ok)
|
||||
-- end
|
||||
|
||||
do CASE "run derived callback twice"
|
||||
local state = source(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue