comparison src/testdir/test_utf8.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 44a1661f4cfa
children 2dcaa860e3fc
comparison
equal deleted inserted replaced
15405:3a8785d45112 15406:63b02fcf1361
23 call assert_equal(exp[i][2], strchars(inp[i], 1)) 23 call assert_equal(exp[i][2], strchars(inp[i], 1))
24 endfor 24 endfor
25 endfunc 25 endfunc
26 26
27 " Test for customlist completion 27 " Test for customlist completion
28 function! CustomComplete1(lead, line, pos) 28 func CustomComplete1(lead, line, pos)
29 return ['あ', 'い'] 29 return ['あ', 'い']
30 endfunction 30 endfunc
31 31
32 function! CustomComplete2(lead, line, pos) 32 func CustomComplete2(lead, line, pos)
33 return ['あたし', 'あたま', 'あたりめ'] 33 return ['あたし', 'あたま', 'あたりめ']
34 endfunction 34 endfunc
35 35
36 function! CustomComplete3(lead, line, pos) 36 func CustomComplete3(lead, line, pos)
37 return ['Nこ', 'Nん', 'Nぶ'] 37 return ['Nこ', 'Nん', 'Nぶ']
38 endfunction 38 endfunc
39 39
40 func Test_customlist_completion() 40 func Test_customlist_completion()
41 command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo 41 command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
42 call feedkeys(":Test1 \<C-L>\<C-B>\"\<CR>", 'itx') 42 call feedkeys(":Test1 \<C-L>\<C-B>\"\<CR>", 'itx')
43 call assert_equal('"Test1 ', getreg(':')) 43 call assert_equal('"Test1 ', getreg(':'))