mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
Add test case
This commit is contained in:
parent
b1a4b34112
commit
3f4e31885f
1 changed files with 10 additions and 0 deletions
|
@ -74,3 +74,13 @@ end)()
|
|||
assert(not flag2, "Wait failed while inside wrap (1)")
|
||||
task.wait(0.2)
|
||||
assert(flag2, "Wait failed while inside wrap (2)")
|
||||
|
||||
-- Coroutines should be passed arguments on initial resume
|
||||
|
||||
local co = coroutine.create(function(a, b, c)
|
||||
assert(a == 1)
|
||||
assert(b == "Hello, world!")
|
||||
assert(c == true)
|
||||
end)
|
||||
|
||||
coroutine.resume(co, 1, "Hello, world!", true)
|
||||
|
|
Loading…
Add table
Reference in a new issue