mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:8.0.0351: no test for concatenating an empty string
Problem: No test for concatenating an empty string that results from out of
bounds indexing.
Solution: Add a simple test.
218426896c
This commit is contained in:
parent
9370a0e5d8
commit
b61a305039
@ -439,3 +439,8 @@ func Test_funcref()
|
||||
call assert_equal(2, OneByRef())
|
||||
call assert_fails('echo funcref("{")', 'E475:')
|
||||
endfunc
|
||||
|
||||
func Test_empty_concatenate()
|
||||
call assert_equal('b', 'a'[4:0] . 'b')
|
||||
call assert_equal('b', 'b' . 'a'[4:0])
|
||||
endfunc
|
||||
|
Loading…
Reference in New Issue
Block a user