mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Echo initial value if given a source
This commit is contained in:
parent
1a1b4d9f39
commit
6b465280eb
2 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue