summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2017-10-22 22:02:48 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2017-10-22 22:02:48 +0900
commite4cc53b975121f360ade479b3ff1d227ce6fd21d (patch)
treee0a0cb1003916cf525170d8d63bd94458d752537 /test
parentf959734e962116644ab5933b15007402ddc1000b (diff)
downloaddeoplete.nvim-e4cc53b975121f360ade479b3ff1d227ce6fd21d.zip
Add custom tests
Diffstat (limited to 'test')
-rw-r--r--test/autoload/deoplete/custom.vim24
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