diff options
| author | Michael Ennen <mike.ennen@gmail.com> | 2016-10-26 21:56:02 -0700 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-12 10:17:35 -0500 |
| commit | cf2701b269a0fd1490da4296774b9fe426100640 (patch) | |
| tree | cf878024e86fe921d317273f0035d9cb60a5d6c9 /src/nvim/testdir | |
| parent | 27b2fb944a4b9bce0f06e7c1f2267949c8edab06 (diff) | |
| download | rneovim-cf2701b269a0fd1490da4296774b9fe426100640.tar.gz rneovim-cf2701b269a0fd1490da4296774b9fe426100640.tar.bz2 rneovim-cf2701b269a0fd1490da4296774b9fe426100640.zip | |
vim-patch:7.4.1586
Problem: Nesting partials doesn't work.
Solution: Append arguments. (Ken Takata)
https://github.com/vim/vim/commit/8a1bb046378f4bc68d6a04af2eab80fb3ce04da6
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_partial.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_partial.vim b/src/nvim/testdir/test_partial.vim index 75cbfe2f25..ae4f74cf5b 100644 --- a/src/nvim/testdir/test_partial.vim +++ b/src/nvim/testdir/test_partial.vim @@ -20,9 +20,17 @@ func Test_partial_args() call Cb("zzz") call assert_equal("foo/bar/xxx", Cb("xxx")) call assert_equal("foo/bar/yyy", call(Cb, ["yyy"])) + let Cb2 = function(Cb) + call assert_equal("foo/bar/zzz", Cb2("zzz")) + let Cb3 = function(Cb, ["www"]) + call assert_equal("foo/bar/www", Cb3()) let Cb = function('MyFunc', []) call assert_equal("a/b/c", Cb("a", "b", "c")) + let Cb2 = function(Cb, []) + call assert_equal("a/b/d", Cb2("a", "b", "d")) + let Cb3 = function(Cb, ["a", "b"]) + call assert_equal("a/b/e", Cb3("e")) let Sort = function('MySort', [1]) call assert_equal([1, 2, 3], sort([3, 1, 2], Sort)) |