From e566419c91b95c95086bd7838f8246a08466ae9f Mon Sep 17 00:00:00 2001 From: "rygwdn@gmail.com" <> Date: Mon, 2 May 2011 14:36:00 -0300 Subject: [PATCH] added tests for Bug #774917 --- test.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 82b8f25..e555fc6 100755 --- a/test.py +++ b/test.py @@ -1786,7 +1786,6 @@ class SnippetOptions_Regex_SameLine_Simple(_VimTest): keys = "abc test test" + EX wanted = "abc test Expand me!" - ####################### # MULTI-WORD SNIPPETS # ####################### @@ -1856,6 +1855,33 @@ class MultiWord_SnippetOptions_ExpandWordSnippets_ExpandSuffix( keys = "a-test it" + EX 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 # ######################