Changed lume.clear() to return the table, updated doc & tests

This commit is contained in:
rxi
2015-02-08 15:12:57 +00:00
parent 0a84bcd0d6
commit d2b26fa681
3 changed files with 4 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ tests["lume.clear"] = function()
local m = { a = 1, b = 2, c = 3 }
lume.clear(m)
testeq(m, {})
testeq( lume.clear(t) == t, true )
end
-- lume.shuffle