mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Minor optimisations to lume.combine(), updated tests
This commit is contained in:
@@ -370,6 +370,12 @@ tests["lume.combine"] = function()
|
||||
fn = lume.combine(nil, a, nil, b, nil)
|
||||
fn(10, 20)
|
||||
testeq( acc, 230 )
|
||||
local x = false
|
||||
fn = lume.combine(function() x = true end)
|
||||
fn()
|
||||
testeq( x, true )
|
||||
testeq( type(lume.combine(nil)), "function" )
|
||||
testeq( type(lume.combine()), "function" )
|
||||
end
|
||||
|
||||
-- lume.call
|
||||
|
Reference in New Issue
Block a user