summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-07 15:11:19 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-07 15:11:19 +0200
commit6bb450145e96d7b182769fd9502a267da72667ec (patch)
treefe9bf56395610749a704c4986aaa7f61e8911483
parente381d3d5e098546854b008e01ca1d28ba1a4a057 (diff)
patch 7.4.1993v7.4.1993
Problem: Not all TRUE and FALSE arguments are tested. Solution: Add a few more tests.
-rw-r--r--src/testdir/test_true_false.vim19
-rw-r--r--src/version.c2
2 files changed, 21 insertions, 0 deletions
diff --git a/src/testdir/test_true_false.vim b/src/testdir/test_true_false.vim
index 90b4f5e37a..f11d298ee6 100644
--- a/src/testdir/test_true_false.vim
+++ b/src/testdir/test_true_false.vim
@@ -85,6 +85,25 @@ func Test_true_false_arg()
call Try_arg_true_false('globpath(".", "Xlink", 0, 0, %v%)', "", "./Xlink")
silent !rm Xlink
endif
+
+ abbr asdf asdff
+ call Try_arg_true_false('hasmapto("asdff", "i", %v%)', 0, 1)
+
+ call Try_arg_true_false('index(["a", "A"], "A", 0, %v%)', 1, 0)
+
+ call Try_arg_true_false('maparg("asdf", "i", %v%)', "", "asdff")
+ call Try_arg_true_false('maparg("asdf", "i", 1, %v%)', "asdff", {'silent': 0, 'noremap': 0, 'lhs': 'asdf', 'mode': '!', 'nowait': 0, 'expr': 0, 'sid': 3, 'rhs': 'asdff', 'buffer': 0})
+
+ call Try_arg_true_false('hasmapto("asdf", "i", %v%)', 0, 1)
+
+ new colored
+ call setline(1, '<here>')
+ syn match brackets "<.*>"
+ syn match here "here" transparent
+ let brackets_id = synID(1, 1, 0)
+ let here_id = synID(1, 3, 0)
+ call Try_arg_true_false('synID(1, 3, %v%)', here_id, brackets_id)
+ bwipe!
endfunc
function Try_arg_non_zero(expr, false_val, true_val)
diff --git a/src/version.c b/src/version.c
index f235d762b4..996745596b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1993,
+/**/
1992,
/**/
1991,