mirror of
https://github.com/neovim/neovim.git
synced 2025-11-09 20:15:24 +00:00
systemlist: test empty lines in beginning and middle of output
This commit is contained in:
@@ -188,6 +188,16 @@ describe('systemlist()', function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
describe('handles empty lines', function()
|
||||||
|
it('in the middle', function()
|
||||||
|
eq({'line one','','line two'}, eval("systemlist('cat',['line one','','line two'])"))
|
||||||
|
end)
|
||||||
|
|
||||||
|
it('in the beginning', function()
|
||||||
|
eq({'','line one','line two'}, eval("systemlist('cat',['','line one','line two'])"))
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
describe('when keepempty option is', function()
|
describe('when keepempty option is', function()
|
||||||
it('0, ignores trailing newline', function()
|
it('0, ignores trailing newline', function()
|
||||||
eq({'aa','bb'}, eval("systemlist('cat',['aa','bb'],0)"))
|
eq({'aa','bb'}, eval("systemlist('cat',['aa','bb'],0)"))
|
||||||
|
|||||||
Reference in New Issue
Block a user