mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00: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:
@@ -439,3 +439,8 @@ func Test_funcref()
|
|||||||
call assert_equal(2, OneByRef())
|
call assert_equal(2, OneByRef())
|
||||||
call assert_fails('echo funcref("{")', 'E475:')
|
call assert_fails('echo funcref("{")', 'E475:')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_empty_concatenate()
|
||||||
|
call assert_equal('b', 'a'[4:0] . 'b')
|
||||||
|
call assert_equal('b', 'b' . 'a'[4:0])
|
||||||
|
endfunc
|
||||||
|
Reference in New Issue
Block a user