From 9eb2de6c34a114524d2328d9f4d7db8284dc0e82 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Thu, 13 Aug 2015 12:01:11 +0600 Subject: [PATCH] add test for vim<7.4.214 --- test/test_Autotrigger.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test_Autotrigger.py b/test/test_Autotrigger.py index 51b85c4..86a1e2b 100644 --- a/test/test_Autotrigger.py +++ b/test/test_Autotrigger.py @@ -54,3 +54,16 @@ class Autotrigger_CanExpandOnTriggerWithLengthMoreThanOne(_VimTest): """} keys = 'abc' wanted = 'autotriggered' + + +class Autotrigger_WillProduceNoExceptionWithVimLowerThan214(_VimTest): + skip_if = lambda self: 'Vim older than 7.4.214 is required' \ + if has_patch(214, self.vim._vim_executable) else None + + files = { 'us/all.snippets': r""" + snippet abc "desc" A + autotriggered + endsnippet + """} + keys = 'abc' + wanted = 'abc'