mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Added more tests for lume.slice()
This commit is contained in:
parent
151b57adc6
commit
c971cee753
@ -210,6 +210,11 @@ tests["lume.slice"] = function()
|
||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, 4), {"d", "e"} )
|
||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, 1, 1), {"a"} )
|
||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, 2, 1), {} )
|
||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, -3, -2), {"c", "d"} )
|
||||
testeq( lume.slice({"a", "b", "c", "d", "e"}, -3, 1), {} )
|
||||
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"}, -3), {"c", "d", "e"} )
|
||||
end
|
||||
|
||||
-- lume.invert
|
||||
|
Loading…
Reference in New Issue
Block a user