From 6b38c5d1869e541a09190e6bdba41e94872112d9 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 18 Aug 2010 10:11:29 +0200 Subject: [PATCH] added a testcase for bug 501727 --- test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test.py b/test.py index a90177e..84c3997 100755 --- a/test.py +++ b/test.py @@ -1841,6 +1841,26 @@ endsnippet wanted = "x first a bob b y" +########################################################################### +# Test for bug 501727 # +########################################################################### +class TestNonEmptyLangmap_ExceptCorrectResult(_VimTest): + snippets = ("testme", +"""my snipped ${1:some_default} +and a mirror: $1 +$2...$3 +$0""") + keys = "testme" + EX + "hi1" + JF + "hi2" + JF + "hi3" + JF + "hi4" + wanted ="""my snipped hi1 +and a mirror: hi1 +hi2...hi3 +hi4""" + + def _options_on(self): + self.send(":set langmap=dj,rk,nl,ln,jd,kr,DJ,RK,NL,LN,JD,KR\n") + def _options_off(self): + self.send(":set langmap=\n") + ########################################################################### # END OF TEST # ###########################################################################