mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Changed position of lume.time() function
This commit is contained in:
@@ -293,13 +293,6 @@ tests["lume.memoize"] = function()
|
||||
testeq( f2(), nil )
|
||||
end
|
||||
|
||||
-- lume.time
|
||||
tests["lume.time"] = function()
|
||||
local t, a, b, c = lume.time(function(x) return 50, 60, x end, 70)
|
||||
testeq( type(t), "number" )
|
||||
testeq( {a, b, c}, {50, 60, 70} )
|
||||
end
|
||||
|
||||
-- lume.combine
|
||||
tests["lume.combine"] = function()
|
||||
local acc = 0
|
||||
@@ -314,6 +307,13 @@ tests["lume.combine"] = function()
|
||||
testeq( acc, 230 )
|
||||
end
|
||||
|
||||
-- lume.time
|
||||
tests["lume.time"] = function()
|
||||
local t, a, b, c = lume.time(function(x) return 50, 60, x end, 70)
|
||||
testeq( type(t), "number" )
|
||||
testeq( {a, b, c}, {50, 60, 70} )
|
||||
end
|
||||
|
||||
-- lume.lambda
|
||||
tests["lume.lambda"] = function()
|
||||
testeq( lume.lambda "x->x*x"(10), 100 )
|
||||
|
Reference in New Issue
Block a user