Fixed empty-table test for lume.invert()

This commit is contained in:
rxi 2014-03-08 16:08:58 +00:00
parent 5e15a57f37
commit cbff46bdfb

View File

@ -205,7 +205,7 @@ end
-- lume.invert -- lume.invert
tests["lume_invert"] = function() tests["lume_invert"] = function()
testeq( {}, {} ) testeq( lume.invert({}), {} )
testeq( lume.invert{a = "x", b = "y"}, {x = "a", y = "b"} ) testeq( lume.invert{a = "x", b = "y"}, {x = "a", y = "b"} )
testeq( lume.invert{a = 1, b = 2}, {"a", "b"} ) testeq( lume.invert{a = 1, b = 2}, {"a", "b"} )
testeq( lume.invert(lume.invert{a = 1, b = 2}), {a = 1, b = 2} ) testeq( lume.invert(lume.invert{a = 1, b = 2}), {a = 1, b = 2} )