From 218426896cbb2129aa4e85803ea97c5b57df1eaa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 23 Feb 2017 13:50:38 +0100 Subject: 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. --- src/testdir/test_expr.vim | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) 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 diff --git a/src/version.c b/src/version.c index bd271cc38..b51f04d40 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 351, /**/ 350, /**/ -- cgit v1.2.1