mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
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.
This commit is contained in:
@@ -473,3 +473,8 @@ func Test_setmatches()
|
||||
call setmatches(set)
|
||||
call assert_equal(exp, getmatches())
|
||||
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