Echo initial value if given a source

This commit is contained in:
Richard 2023-09-18 19:44:48 -07:00 committed by Aaron
parent 1a1b4d9f39
commit 6b465280eb
2 changed files with 11 additions and 1 deletions

View file

@ -359,6 +359,12 @@ TEST("source()", wrap_root(function()
CHECK(src() == 2)
end
do CASE "echo if value is a source"
local a = source(1)
local b = source(a)
CHECK(a == b)
end
do CASE "does not update if same value"
local src = source(1)