mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-12-13 17:24:21 +00:00
Added another test for lume.slice()
This commit is contained in:
parent
cd3c0a1eea
commit
841cee30e1
@ -245,6 +245,7 @@ tests["lume.slice"] = function()
|
|||||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, 0, 1), {"a"} )
|
testeq( lume.slice({"a", "b", "c", "d", "e"}, 0, 1), {"a"} )
|
||||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, 0, 0), {} )
|
testeq( lume.slice({"a", "b", "c", "d", "e"}, 0, 0), {} )
|
||||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, -3), {"c", "d", "e"} )
|
testeq( lume.slice({"a", "b", "c", "d", "e"}, -3), {"c", "d", "e"} )
|
||||||
|
testeq( lume.slice({"a", "b", "c", "d", "e"}, -3, 900), {"c", "d", "e"} )
|
||||||
end
|
end
|
||||||
|
|
||||||
-- lume.invert
|
-- lume.invert
|
||||||
|
Loading…
Reference in New Issue
Block a user