Fix #317 completed snippet problem
This commit is contained in:
@@ -38,6 +38,11 @@ function! s:suite.get_completed_snippet()
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }), ')${1}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo(', 'abbr' : '',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }), '${1})${2}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo(', 'abbr' : 'foo(hoge)',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
@@ -78,6 +83,11 @@ function! s:suite.get_completed_snippet()
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }), '}${1}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo{', 'abbr' : 'foo{',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }), '${1}}${2}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo{', 'abbr' : 'foo{piyo}',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
|
||||
Reference in New Issue
Block a user