From c9d0ff4c4adc76380c8cfa2bd648cb42dc65e409 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Sun, 15 Aug 2010 15:08:51 +0200 Subject: [PATCH] Added a test for bug 423701, which seems to have been fixed already --- test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 8aa47f8..7c29faf 100755 --- a/test.py +++ b/test.py @@ -20,7 +20,7 @@ # # Now, from another terminal, launch the testsuite: # $ ./test.py -# +# # The testsuite will use ``screen`` to inject commands into the Vim under test, # and will compare the resulting output to expected results. @@ -106,7 +106,7 @@ class _VimTest(unittest.TestCase): # Clear the buffer self.send("bggVGd") - if not isinstance(self.snippets[0],tuple): + if len(self.snippets) and not isinstance(self.snippets[0],tuple): self.snippets = ( self.snippets, ) for s in self.snippets: @@ -1626,6 +1626,10 @@ class ListAllAvailable_testtypedSecondOpt_ExceptCorrectResult(_ListAllSnippets): keys = "hallo test" + LS + "2\n" wanted = "hallo TEST ONE" +class ListAllAvailable_NonDefined_NoExceptionShouldBeRaised(_ListAllSnippets): + keys = "hallo qualle" + LS + "Hi" + wanted = "hallo qualleHi" + ######################### # SNIPPETS FILE PARSING # #########################