added tests for Bug #774917

This commit is contained in:
rygwdn@gmail.com 2011-05-02 14:36:00 -03:00
parent 5d208cb7be
commit e566419c91

28
test.py
View File

@ -1786,7 +1786,6 @@ class SnippetOptions_Regex_SameLine_Simple(_VimTest):
keys = "abc test test" + EX keys = "abc test test" + EX
wanted = "abc test Expand me!" wanted = "abc test Expand me!"
####################### #######################
# MULTI-WORD SNIPPETS # # MULTI-WORD SNIPPETS #
####################### #######################
@ -1856,6 +1855,33 @@ class MultiWord_SnippetOptions_ExpandWordSnippets_ExpandSuffix(
keys = "a-test it" + EX keys = "a-test it" + EX
wanted = "a-Expand me!" wanted = "a-Expand me!"
# Test for Bug #774917
def _snip_quote(qt):
return (
("te" + qt + "st", "Expand me!", ""),
("te", "Bad", ""),
)
class Snippet_With_SingleQuote(_VimTest):
snippets = _snip_quote("'")
keys = "te'st" + EX
wanted = "Expand me!"
class Snippet_With_SingleQuote_List(_VimTest):
snippets = _snip_quote("'")
keys = "te" + LS + "1\n"
wanted = "Expand me!"
class Snippet_With_DoubleQuote(_VimTest):
snippets = _snip_quote('"')
keys = 'te"st' + EX
wanted = "Expand me!"
class Snippet_With_DoubleQuote_List(_VimTest):
snippets = _snip_quote('"')
keys = "te" + LS + "1\n"
wanted = "Expand me!"
###################### ######################
# SELECTING MULTIPLE # # SELECTING MULTIPLE #
###################### ######################