summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_search.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-09 18:20:16 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-09 18:20:16 +0100
commiteb992cb90fd79c77ad2743459ac898e6ac3de939 (patch)
tree594fcd74aeee550fe7395eb93ea4da34bf22a000 /src/testdir/test_search.vim
parent69a92fb5aecdf2f9d5f6947790b18991b22d0e4c (diff)
patch 8.0.0440: not enough test coverage in Insert modev8.0.0440
Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521)
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r--src/testdir/test_search.vim8
1 files changed, 4 insertions, 4 deletions
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