summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2018-04-09 16:29:59 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2018-04-09 16:29:59 +0900
commit053c66c9ea67198e022aeff46f5a03b54dac8428 (patch)
treed0906aca4b98b57aef743737d6b6d6e015161406 /test
parentc80de7a6f747234b1a6bb0e77ca98e8c0ba4e695 (diff)
downloaddeoplete.nvim-053c66c9ea67198e022aeff46f5a03b54dac8428.zip
Add dict type format tests
Diffstat (limited to 'test')
-rw-r--r--test/autoload/deoplete/custom.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/autoload/deoplete/custom.vim b/test/autoload/deoplete/custom.vim
index 90cba96..9a9c9f5 100644
--- a/test/autoload/deoplete/custom.vim
+++ b/test/autoload/deoplete/custom.vim
@@ -68,4 +68,15 @@ function! s:suite.custom_option() abort
call s:assert.equals(
\ deoplete#custom#_get_filetype_option(
\ 'keyword_patterns', 'tex', ''), s:tex_pattern)
+
+ " Dict type format
+ call deoplete#custom#_init()
+ call deoplete#custom#_init_buffer()
+ call deoplete#custom#option({
+ \ 'auto_complete': v:true, 'camel_case': v:true
+ \ })
+ call s:assert.equals(
+ \ deoplete#custom#_get_option('auto_complete'), v:true)
+ call s:assert.equals(
+ \ deoplete#custom#_get_option('camel_case'), v:true)
endfunction