Added the test cases. Only commented the easiest in so far
This commit is contained in:
parent
782836636d
commit
6ba2c53ffc
71
test.py
71
test.py
@ -1841,9 +1841,9 @@ endsnippet
|
||||
wanted = "x first a bob b y"
|
||||
|
||||
|
||||
###########################################################################
|
||||
#######################
|
||||
# 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 #
|
||||
###########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user