diff options
author | ckelsel <ckelsel@hotmail.com> | 2018-01-08 12:23:33 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2018-01-08 12:24:21 +0800 |
commit | b61a305039a58ac0c2ff095b22e4eb6d7ccfc89e (patch) | |
tree | 7bb34e41adbbc2a23786f11a71e7bc7c1084ff56 | |
parent | 9370a0e5d859f692f6fa24c27c76410b54595be4 (diff) | |
download | rneovim-b61a305039a58ac0c2ff095b22e4eb6d7ccfc89e.tar.gz rneovim-b61a305039a58ac0c2ff095b22e4eb6d7ccfc89e.tar.bz2 rneovim-b61a305039a58ac0c2ff095b22e4eb6d7ccfc89e.zip |
vim-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.
https://github.com/vim/vim/commit/218426896cbb2129aa4e85803ea97c5b57df1eaa
-rw-r--r-- | src/nvim/testdir/test_expr.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim index d32facaa98..ad967c528c 100644 --- a/src/nvim/testdir/test_expr.vim +++ b/src/nvim/testdir/test_expr.vim @@ -439,3 +439,8 @@ func Test_funcref() call assert_equal(2, OneByRef()) call assert_fails('echo funcref("{")', 'E475:') endfunc + +func Test_empty_concatenate() + call assert_equal('b', 'a'[4:0] . 'b') + call assert_equal('b', 'b' . 'a'[4:0]) +endfunc |