summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorreaysawa <joao.paulo.silvasouza@hotmail.com>2019-02-11 03:00:17 -0300
committerreaysawa <joao.paulo.silvasouza@hotmail.com>2019-02-11 03:00:17 -0300
commit988a23c113f7ad7161c38a30a5db13d92b95a745 (patch)
treec014f8aa8f04103cedc125cac5b0000b5ecff16d /test
parentda9f624e77cd123bb1c823aa7a5a9f7e19875054 (diff)
parent0e63fb738acdfa7013bb229c0dbcd576c32e2083 (diff)
downloaddeoplete.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.vim18
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