From 8a13d4a6797a7cf1cd53589b7c138d61a11c83b6 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 1 Jan 2016 20:37:00 +0900 Subject: [PATCH] Add test --- test/functions.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/functions.vim b/test/functions.vim index dc63e28..b350724 100644 --- a/test/functions.vim +++ b/test/functions.vim @@ -87,5 +87,10 @@ function! s:suite.get_completed_snippet() \ 'word' : 'Dictionary(', 'abbr' : 'Dictionary(foo)', \ 'menu' : '', 'info' : '' \ }), '<${1:#:Key}, ${2:#:Value}>${3:#:foo})${4}') + + call s:assert.equals(neosnippet#parser#_get_completed_snippet({ + \ 'word' : 'Dictionary(', 'abbr' : 'Dictionary (foo)', + \ 'menu' : '', 'info' : '' + \ }), '${1:#:foo})${2}') endfunction