mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Added lume.clear() and tests
This commit is contained in:
@@ -129,6 +129,16 @@ tests["lume.remove"] = function()
|
||||
local m = { a = 1, b = 2, c = 3 }
|
||||
end
|
||||
|
||||
-- lume.clear
|
||||
tests["lume.clear"] = function()
|
||||
local t = { 1, 2, 3 }
|
||||
lume.clear(t)
|
||||
testeq(t, {})
|
||||
local m = { a = 1, b = 2, c = 3 }
|
||||
lume.clear(m)
|
||||
testeq(m, {})
|
||||
end
|
||||
|
||||
-- lume.shuffle
|
||||
tests["lume.shuffle"] = function()
|
||||
local t = {1, 2, 3, 4, 5}
|
||||
|
Reference in New Issue
Block a user