From 70ba6f0083265b98a492677832d842eca09d7a9f Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Sun, 20 Feb 2011 20:54:16 +0100 Subject: [PATCH] Added another test case that encloses the snippet --- test.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test.py b/test.py index 60720bb..cc2f8f0 100755 --- a/test.py +++ b/test.py @@ -217,6 +217,23 @@ class MultilineExpandTestTyping_ExceptCorrectResult(_VimTest): wanted = "Wie Hallo Welt!\nUnd Wie gehtsHuiui! gehts" keys = "Wie hallo gehts" + ESC + "bhi" + EX + "Huiui!" + +class MultilineExpandWithFormatoptionsOnTextBeforeAndAfter_ExceptCorrectResult(_VimTest): + snippets = ("test", "Before${1:longer expand}After\nstart$1end") + keys = "test" + EX + "This is a longer text that should wrap" + wanted = \ +"""BeforeThis is a +longer text that +should wrapAfter +startThis is a +longer text that +should wrapend""" + + def _options_on(self): + self.send(":set tw=20\n") + def _options_off(self): + self.send(":set tw=0\n") + class MultilineExpandWithFormatoptionsOn_ExceptCorrectResult(_VimTest): snippets = ("test", "${1:longer expand}\n$0") keys = "test" + EX + "This is a longer text that should wrap"