Mercurial > vim
comparison src/testdir/test_charsearch.vim @ 15406:63b02fcf1361 v8.1.0711
patch 8.1.0711: test files still use function!
commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 9 23:01:02 2019 +0100
patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Jan 2019 23:15:05 +0100 |
parents | eb9a7296ae9f |
children | 0dcc2ee838dd |
comparison
equal
deleted
inserted
replaced
15405:3a8785d45112 | 15406:63b02fcf1361 |
---|---|
1 | 1 |
2 function! Test_charsearch() | 2 func Test_charsearch() |
3 enew! | 3 enew! |
4 call append(0, ['Xabcdefghijkemnopqretuvwxyz', | 4 call append(0, ['Xabcdefghijkemnopqretuvwxyz', |
5 \ 'Yabcdefghijkemnopqretuvwxyz', | 5 \ 'Yabcdefghijkemnopqretuvwxyz', |
6 \ 'Zabcdefghijkemnokqretkvwxyz']) | 6 \ 'Zabcdefghijkemnokqretkvwxyz']) |
7 " check that "fe" and ";" work | 7 " check that "fe" and ";" work |
27 call setcharsearch({'until': 1}) | 27 call setcharsearch({'until': 1}) |
28 set cpo-=; | 28 set cpo-=; |
29 normal! ;;p | 29 normal! ;;p |
30 call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3)) | 30 call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3)) |
31 enew! | 31 enew! |
32 endfunction | 32 endfunc |
33 | 33 |
34 " Test for t,f,F,T movement commands and 'cpo-;' setting | 34 " Test for t,f,F,T movement commands and 'cpo-;' setting |
35 function! Test_search_cmds() | 35 func Test_search_cmds() |
36 enew! | 36 enew! |
37 call append(0, ["aaa two three four", " zzz", "yyy ", | 37 call append(0, ["aaa two three four", " zzz", "yyy ", |
38 \ "bbb yee yoo four", "ccc two three four", | 38 \ "bbb yee yoo four", "ccc two three four", |
39 \ "ddd yee yoo four"]) | 39 \ "ddd yee yoo four"]) |
40 set cpo-=; | 40 set cpo-=; |
57 call assert_equal('y', getline(3)) | 57 call assert_equal('y', getline(3)) |
58 call assert_equal('bbb y', getline(4)) | 58 call assert_equal('bbb y', getline(4)) |
59 call assert_equal('ccc', getline(5)) | 59 call assert_equal('ccc', getline(5)) |
60 call assert_equal('ddd yee y', getline(6)) | 60 call assert_equal('ddd yee y', getline(6)) |
61 enew! | 61 enew! |
62 endfunction | 62 endfunc |