From 6ba2c53ffcf0864c5f7f7c63a1b178da918cc98c Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 19 Aug 2010 10:26:10 +0200 Subject: [PATCH] Added the test cases. Only commented the easiest in so far --- test.py | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 84c3997..8d1bbe3 100755 --- a/test.py +++ b/test.py @@ -1841,9 +1841,9 @@ endsnippet wanted = "x first a bob b y" -########################################################################### -# Test for bug 501727 # -########################################################################### +####################### +# Test for bug 501727 # +####################### class TestNonEmptyLangmap_ExceptCorrectResult(_VimTest): snippets = ("testme", """my snipped ${1:some_default} @@ -1861,6 +1861,73 @@ hi4""" def _options_off(self): self.send(":set langmap=\n") +######################## +# Tests for bug 616315 # +######################## +# class TrailingNewline_TabStop_JustNL(_VimTest): +# snippets = ("test", r""" +# x${1: +# } +# $2""") +# keys = "test" + EX + "j" + JF + "k" +# wanted = """ +# xj +# k""" + +# TODO: comment these in again +# class TrailingNewline_TabStop_EndNL(_VimTest): +# snippets = ("test", r""" +# x${1:a +# } +# $2""") +# keys = "test" + EX + "j" + JF + "k" +# wanted = """ +# xj +# k""" + +# class TrailingNewline_TabStop_StartNL(_VimTest): +# snippets = ("test", r""" +# x${1: +# a} +# $2""") +# keys = "test" + EX + "j" + JF + "k" +# wanted = """ +# xj +# k""" +# +# class TrailingNewline_TabStop_EndStartNL(_VimTest): +# snippets = ("test", r""" +# x${1: +# a +# } +# $2""") +# keys = "test" + EX + "j" + JF + "k" +# wanted = """ +# xj +# k""" +# +class TrailingNewline_TabStop_NotEndStartNL(_VimTest): + snippets = ("test", r""" +x${1:a +a} +$2""") + keys = "test" + EX + "j" + JF + "k" + wanted = """ +xj +k""" + +# class TrailingNewline_TabStop_ExtraNL_ShouldFail(_VimTest): +# snippets = ("test", r""" +# x${1:a +# a} +# $2 +# """) +# keys = "test" + EX + "j" + JF + "k" +# wanted = """ +# xj +# k""" + + ########################################################################### # END OF TEST # ###########################################################################