diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-10-22 22:02:48 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-10-22 22:02:48 +0900 |
commit | e4cc53b975121f360ade479b3ff1d227ce6fd21d (patch) | |
tree | e0a0cb1003916cf525170d8d63bd94458d752537 /test | |
parent | f959734e962116644ab5933b15007402ddc1000b (diff) | |
download | deoplete.nvim-e4cc53b975121f360ade479b3ff1d227ce6fd21d.zip |
Add custom tests
Diffstat (limited to 'test')
-rw-r--r-- | test/autoload/deoplete/custom.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/autoload/deoplete/custom.vim b/test/autoload/deoplete/custom.vim new file mode 100644 index 0000000..7630d70 --- /dev/null +++ b/test/autoload/deoplete/custom.vim @@ -0,0 +1,24 @@ +let s:suite = themis#suite('custom') +let s:assert = themis#helper('assert') + +function! s:suite.custom() abort + call deoplete#custom#init() + + call deoplete#custom#source('_', + \ 'matchers', ['matcher_head']) + + call deoplete#custom#source('_', 'converters', + \ ['converter_auto_delimiter', 'remove_overlap']) + + call s:assert.equals( + \ deoplete#custom#get(), + \ {'_' : { + \ 'matchers': ['matcher_head'], + \ 'converters': ['converter_auto_delimiter', 'remove_overlap']}}) + + call deoplete#custom#init() + + call deoplete#custom#source('buffer', + \ 'min_pattern_length', 9999) + call deoplete#custom#source('buffer', 'rank', 9999) +endfunction |