comparison src/testdir/test_ins_complete.vim @ 12788:cb9b2774f21f v8.0.1271

patch 8.0.1271: still too many old style tests commit https://github.com/vim/vim/commit/fb094e14c19337de824d4e6710ca6a2617930ab0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 5 20:59:28 2017 +0100 patch 8.0.1271: still too many old style tests Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes #2290)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Nov 2017 21:00:04 +0100
parents 9c1659761fc3
children ae5f855a64be
comparison
equal deleted inserted replaced
12787:65546ba95150 12788:cb9b2774f21f
1 1
2 " Test for insert expansion 2 " Test for insert expansion
3 func Test_ins_complete() 3 func Test_ins_complete()
4 edit test_ins_complete.vim 4 edit test_ins_complete.vim
5 " The files in the current directory interferes with the files
6 " used by this test. So use a separate directory for the test.
7 call mkdir('Xdir')
8 cd Xdir
9
5 set ff=unix 10 set ff=unix
6 call writefile(["test11\t36Gepeto\t/Tag/", 11 call writefile(["test11\t36Gepeto\t/Tag/",
7 \ "asd\ttest11file\t36G", 12 \ "asd\ttest11file\t36G",
8 \ "Makefile\tto\trun"], 'Xtestfile') 13 \ "Makefile\tto\trun"], 'Xtestfile')
9 call writefile(['', 'start of testfile', 14 call writefile(['', 'start of testfile',
87 call delete('Xtestfile') 92 call delete('Xtestfile')
88 call delete('Xtest11.one') 93 call delete('Xtest11.one')
89 call delete('Xtest11.two') 94 call delete('Xtest11.two')
90 call delete('Xtestdata') 95 call delete('Xtestdata')
91 set cpt& cot& def& tags& tagbsearch& hidden& 96 set cpt& cot& def& tags& tagbsearch& hidden&
97 cd ..
98 call delete('Xdir', 'rf')
92 endfunc 99 endfunc
93 100
94 func Test_omni_dash() 101 func Test_omni_dash()
95 func Omni(findstart, base) 102 func Omni(findstart, base)
96 if a:findstart 103 if a:findstart