Changed position of lume.time() function

This commit is contained in:
rxi
2014-05-01 19:23:44 +01:00
parent 0716caf6a1
commit 3f61d823ae
3 changed files with 21 additions and 21 deletions

View File

@@ -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 )