summaryrefslogtreecommitdiff
path: root/src/testdir/test_expr.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-23 13:50:38 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-23 13:50:38 +0100
commit218426896cbb2129aa4e85803ea97c5b57df1eaa (patch)
tree0ce0e802eedf00927b221f7915b0836023347ccb /src/testdir/test_expr.vim
parentae177b716626c8d517b7c6c7d77f8b1aec6ba5f9 (diff)
downloadvim-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.vim5
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