Add a test case for custom snippet for `enable_completed_snippet`

This commit is contained in:
Gaston Tonietti 2016-06-09 14:18:23 +10:00
parent 6f7f877318
commit b8f51c09ac
1 changed files with 5 additions and 0 deletions

View File

@ -128,5 +128,10 @@ function! s:suite.get_completed_snippet() abort
\ 'word' : 'for[', 'abbr' : '',
\ 'menu' : '', 'info' : ''
\ }, ''), '${1}]${2}')
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
\ 'word' : 'something', 'abbr' : 'something(else)',
\ 'menu' : '', 'info' : '', 'snippet' : '(${1:custom})${2}'
\ }, ''), '(${1:custom})${2}')
endfunction