From eb992cb90fd79c77ad2743459ac898e6ac3de939 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 Mar 2017 18:20:16 +0100 Subject: patch 8.0.0440: not enough test coverage in Insert mode Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521) --- src/testdir/test_search.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testdir/test_search.vim') diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 7f4f7e0ec9..730e683911 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -7,7 +7,7 @@ func Test_search_cmdline() endif " need to disable char_avail, " so that expansion of commandline works - call test_disable_char_avail(1) + call test_override("char_avail", 1) new call setline(1, [' 1', ' 2 these', ' 3 the', ' 4 their', ' 5 there', ' 6 their', ' 7 the', ' 8 them', ' 9 these', ' 10 foobar']) " Test 1 @@ -194,7 +194,7 @@ func Test_search_cmdline() call assert_equal(' 3 the', getline('.')) " clean up - call test_disable_char_avail(0) + call test_override("char_avail", 0) bw! endfunc @@ -204,7 +204,7 @@ func Test_search_cmdline2() endif " need to disable char_avail, " so that expansion of commandline works - call test_disable_char_avail(1) + call test_override("char_avail", 1) new call setline(1, [' 1', ' 2 these', ' 3 the theother']) " Test 1 @@ -266,7 +266,7 @@ func Test_search_cmdline2() " clean up set noincsearch - call test_disable_char_avail(0) + call test_override("char_avail", 0) bw! endfunc -- cgit v1.2.3