Error when getting an unset context without a default (#101)

Co-authored-by: centau <83140718+centau@users.noreply.github.com>
This commit is contained in:
Kaan 2026-10-22 14:33:40 +03:00 • committed by GitHub
parent b24666fc57
commit c2bd2c2d4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View file

@ -2828,6 +2828,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()