mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
systemlist: test empty lines in beginning and middle of output
This commit is contained in:
parent
1464b0eda2
commit
b3151af69c
@ -188,6 +188,16 @@ describe('systemlist()', function()
|
||||
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()
|
||||
it('0, ignores trailing newline', function()
|
||||
eq({'aa','bb'}, eval("systemlist('cat',['aa','bb'],0)"))
|
||||
|
Loading…
Reference in New Issue
Block a user