Added empty-table test for lume.set()

This commit is contained in:
rxi 2014-03-08 14:48:04 +00:00
parent 1bbb795a89
commit 8f4d1b158f

View File

@ -170,6 +170,7 @@ end
-- lume.set -- lume.set
tests["lume.set"] = function() tests["lume.set"] = function()
testeq( lume.set({}), {} )
local t = lume.set({1, 2, 3, 2, 5, 6, 6}) local t = lume.set({1, 2, 3, 2, 5, 6, 6})
table.sort(t) table.sort(t)
testeq( t, {1, 2, 3, 5, 6} ) testeq( t, {1, 2, 3, 5, 6} )