diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-23 13:50:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-23 13:50:38 +0100 |
commit | 218426896cbb2129aa4e85803ea97c5b57df1eaa (patch) | |
tree | 0ce0e802eedf00927b221f7915b0836023347ccb /src/testdir/test_expr.vim | |
parent | ae177b716626c8d517b7c6c7d77f8b1aec6ba5f9 (diff) | |
download | vim-git-218426896cbb2129aa4e85803ea97c5b57df1eaa.tar.gz |
patch 8.0.0351: no test for concatenating an empty stringv8.0.0351
Problem: No test for concatenating an empty string that results from out of
bounds indexing.
Solution: Add a simple test.
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r-- | src/testdir/test_expr.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index e5c918c8c..80cdc1b0d 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -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 |