Added a test for bug 423701, which seems to have been fixed already
This commit is contained in:
parent
3d0de8b22d
commit
c9d0ff4c4a
8
test.py
8
test.py
@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
# Now, from another terminal, launch the testsuite:
|
# Now, from another terminal, launch the testsuite:
|
||||||
# $ ./test.py
|
# $ ./test.py
|
||||||
#
|
#
|
||||||
# The testsuite will use ``screen`` to inject commands into the Vim under test,
|
# The testsuite will use ``screen`` to inject commands into the Vim under test,
|
||||||
# and will compare the resulting output to expected results.
|
# and will compare the resulting output to expected results.
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ class _VimTest(unittest.TestCase):
|
|||||||
# Clear the buffer
|
# Clear the buffer
|
||||||
self.send("bggVGd")
|
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, )
|
self.snippets = ( self.snippets, )
|
||||||
|
|
||||||
for s in self.snippets:
|
for s in self.snippets:
|
||||||
@ -1626,6 +1626,10 @@ class ListAllAvailable_testtypedSecondOpt_ExceptCorrectResult(_ListAllSnippets):
|
|||||||
keys = "hallo test" + LS + "2\n"
|
keys = "hallo test" + LS + "2\n"
|
||||||
wanted = "hallo TEST ONE"
|
wanted = "hallo TEST ONE"
|
||||||
|
|
||||||
|
class ListAllAvailable_NonDefined_NoExceptionShouldBeRaised(_ListAllSnippets):
|
||||||
|
keys = "hallo qualle" + LS + "Hi"
|
||||||
|
wanted = "hallo qualleHi"
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# SNIPPETS FILE PARSING #
|
# SNIPPETS FILE PARSING #
|
||||||
#########################
|
#########################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user