From bc2b71d44a0b90b6aeb3534a76912fccbe5577df Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 17 Feb 2020 21:33:30 +0100 Subject: patch 8.2.0270: some code not covered by tests Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5649) --- src/testdir/test_vimscript.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/testdir/test_vimscript.vim') diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index a422a6df8..a75e5f6f2 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -2061,6 +2061,16 @@ func Test_deep_nest() call delete('Xscript') endfunc +" Test for , in a function {{{1 +func Test_sfile_in_function() + func Xfunc() + call assert_match('..Test_sfile_in_function\[5]..Xfunc', expand('')) + call assert_equal('2', expand('')) + endfunc + call Xfunc() + delfunc Xfunc +endfunc + "------------------------------------------------------------------------------- " Modelines {{{1 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker -- cgit v1.2.1