diff options
author | reaysawa <joao.paulo.silvasouza@hotmail.com> | 2019-02-11 03:00:17 -0300 |
---|---|---|
committer | reaysawa <joao.paulo.silvasouza@hotmail.com> | 2019-02-11 03:00:17 -0300 |
commit | 988a23c113f7ad7161c38a30a5db13d92b95a745 (patch) | |
tree | c014f8aa8f04103cedc125cac5b0000b5ecff16d /test | |
parent | da9f624e77cd123bb1c823aa7a5a9f7e19875054 (diff) | |
parent | 0e63fb738acdfa7013bb229c0dbcd576c32e2083 (diff) | |
download | deoplete.nvim-988a23c113f7ad7161c38a30a5db13d92b95a745.zip |
Merge branch 'master' of https://github.com/Shougo/deoplete.nvim into filter_reorder_kind
Diffstat (limited to 'test')
-rw-r--r-- | test/autoload/deoplete/custom.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/autoload/deoplete/custom.vim b/test/autoload/deoplete/custom.vim index d1aff74..48f2562 100644 --- a/test/autoload/deoplete/custom.vim +++ b/test/autoload/deoplete/custom.vim @@ -103,3 +103,21 @@ function! s:suite.custom_option() abort call s:assert.equals( \ deoplete#custom#_get_option('camel_case'), v:true) endfunction + +function! s:suite.custom_filter() abort + call deoplete#custom#_init() + call deoplete#custom#filter('converter_auto_delimiter', { + \ 'delimiters': ['foo', 'bar'], + \ }) + call deoplete#custom#_update_cache() + call s:assert.equals( + \ deoplete#custom#_get_filter('converter_auto_delimiter'), + \ {'delimiters': ['foo', 'bar']}) + call deoplete#custom#buffer_filter('converter_auto_delimiter', { + \ 'delimiters': ['foo'], + \ }) + call deoplete#custom#_update_cache() + call s:assert.equals( + \ deoplete#custom#_get_filter('converter_auto_delimiter'), + \ {'delimiters': ['foo']}) +endfunction |