mirror of
https://github.com/centau/vide.git
synced 2026-10-21 11:44:07 +00:00
Error when getting an unset context without a default
This commit is contained in:
parent
a4151bd41e
commit
446be23cfc
3 changed files with 13 additions and 1 deletions
|
|
@ -2769,6 +2769,16 @@ TEST("context()", function()
|
|||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
do CASE "get context without default"
|
||||
local ctx = context()
|
||||
|
||||
CHECK(not pcall(ctx))
|
||||
|
||||
root(function()
|
||||
CHECK(not pcall(ctx))
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
TEST("nested effects cases", function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue