mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: NULL-initialized vimscript strings should eval to empty strings
This commit is contained in:
parent
fd636fc6dc
commit
f56d1dc838
@ -27,6 +27,11 @@ describe('vim_* functions', function()
|
||||
nvim('command', 'let g:v2 = [1, 2, {"v3": 3}]')
|
||||
eq({v1 = 'a', v2 = {1, 2, {v3 = 3}}}, nvim('eval', 'g:'))
|
||||
end)
|
||||
|
||||
it('handles NULL-initialized strings correctly', function()
|
||||
eq(1, nvim('eval',"matcharg(1) == ['', '']"))
|
||||
eq({'', ''}, nvim('eval','matcharg(1)'))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('strwidth', function()
|
||||
|
Loading…
Reference in New Issue
Block a user