neosnippet.vim/test/functions.vim
Shougo Matsushita 1617094a8c Fix paren parser
2015-09-01 05:56:41 +09:00

13 lines
415 B
VimL

let s:suite = themis#suite('toml')
let s:assert = themis#helper('assert')
function! s:suite.get_in_paren()
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar)'),
\ 'foobar')
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar, baz)'),
\ 'foobar, baz')
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar, (baz))'),
\ 'foobar, (baz)')
endfunction