28 lines
863 B
VimL
28 lines
863 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)')
|
|
call s:assert.equals(neosnippet#handlers#_get_in_paren(
|
|
\ 'foobar('),
|
|
\ '')
|
|
call s:assert.equals(neosnippet#handlers#_get_in_paren(
|
|
\ 'foobar()'),
|
|
\ '')
|
|
call s:assert.equals(neosnippet#handlers#_get_in_paren(
|
|
\ 'foobar(fname)'),
|
|
\ 'fname')
|
|
call s:assert.equals(neosnippet#handlers#_get_in_paren(
|
|
\ 'wait() wait(long, int)'),
|
|
\ 'long, int')
|
|
endfunction
|
|
|