Re: Writing tests for completion

2018-02-18 Thread Lifepillar
On 09/02/2018 22:41, Lifepillar wrote: Unfortunately, I still have some problems when I test my plugin's mappings. I have traced back the issue to the following:   fun! s:dup_complete()     " Get the text in front of the cursor     return getline('.')[0:col('.') - 2]   endf   fun! Test_du

Re: Writing tests for completion

2018-02-09 Thread Lifepillar
On 09/02/2018 14:32, Bram Moolenaar wrote: Lifepillar wrote: On 05/02/2018 22:49, Nikolay Aleksandrovich Pavlov wrote: 2018-02-05 23:31 GMT+03:00 Lifepillar : I would like to automate the testing of my completion plugin, so I have started to write functions like this (I am using a test frame

Re: Writing tests for completion

2018-02-09 Thread Bram Moolenaar
Lifepillar wrote: > On 05/02/2018 22:49, Nikolay Aleksandrovich Pavlov wrote: > > 2018-02-05 23:31 GMT+03:00 Lifepillar : > >> I would like to automate the testing of my completion plugin, > >> so I have started to write functions like this (I am using > >> a test framework like the one in Vim):

Re: Writing tests for completion

2018-02-05 Thread Lifepillar
On 05/02/2018 22:49, Nikolay Aleksandrovich Pavlov wrote: 2018-02-05 23:31 GMT+03:00 Lifepillar : I would like to automate the testing of my completion plugin, so I have started to write functions like this (I am using a test framework like the one in Vim): fun! Test_buffer_keyword_completion()

Re: Writing tests for completion

2018-02-05 Thread Nikolay Aleksandrovich Pavlov
2018-02-05 23:31 GMT+03:00 Lifepillar : > I would like to automate the testing of my completion plugin, > so I have started to write functions like this (I am using > a test framework like the one in Vim): > > fun! Test_buffer_keyword_completion() > new > set completeopt=menuone,noselect > ca