comparison src/testdir/test_charsearch.vim @ 19783:546bdeef35f1 v8.2.0448

patch 8.2.0448: various functions not properly tested Commit: https://github.com/vim/vim/commit/0e05de46226eb4e5ea580beefa71831f92d613d3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 25 22:23:46 2020 +0100 patch 8.2.0448: various functions not properly tested Problem: Various functions not properly tested. Solution: Add more tests, especially for failures. (Yegappan Lakshmanan, closes #5843)
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Mar 2020 22:30:04 +0100
parents f70a3c1000bb
children a4bd28e2cf1d
comparison
equal deleted inserted replaced
19782:e5f4316b01dd 19783:546bdeef35f1
27 normal! $;p 27 normal! $;p
28 call setcharsearch({'until': 1}) 28 call setcharsearch({'until': 1})
29 set cpo-=; 29 set cpo-=;
30 normal! ;;p 30 normal! ;;p
31 call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3)) 31 call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3))
32
33 call assert_fails("call setcharsearch([])", 'E715:')
32 enew! 34 enew!
33 endfunc 35 endfunc
34 36
35 " Test for t,f,F,T movement commands and 'cpo-;' setting 37 " Test for t,f,F,T movement commands and 'cpo-;' setting
36 func Test_search_cmds() 38 func Test_search_cmds()