# HG changeset patch # User Christian Brabandt # Date 1487854806 -3600 # Node ID 053d4ad16f37ce482fbd1b612dc336e8947ccaab # Parent 10b4f6954ff6ae8968dfe7351de32b61c7f362e4 patch 8.0.0351: no test for concatenating an empty string commit https://github.com/vim/vim/commit/218426896cbb2129aa4e85803ea97c5b57df1eaa Author: Bram Moolenaar Date: Thu Feb 23 13:50:38 2017 +0100 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. diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim --- 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 351, +/**/ 350, /**/ 349,