Mercurial > vim
diff src/testdir/test_search.vim @ 11105:7c7e496e625d v8.0.0440
patch 8.0.0440: not enough test coverage in Insert mode
commit https://github.com/vim/vim/commit/eb992cb90fd79c77ad2743459ac898e6ac3de939
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 9 18:20:16 2017 +0100
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 09 Mar 2017 18:30:07 +0100 |
parents | ae45d497868f |
children | 7428a08c2f68 |
line wrap: on
line diff
--- 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