aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_expr.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-10-10 16:48:24 -0400
committerGitHub <noreply@github.com>2021-10-10 16:48:24 -0400
commitb3e0d6708eca3cd22695d364ba2aca7401cc0f8c (patch)
treee2742ee0a6b33161887d9dab6069357e337aa302 /src/nvim/testdir/test_expr.vim
parent62eec98d5feee9173ea2decb2d7cb72971c24f8b (diff)
parenta8504638cd2497b3bdd0daf27dcc50903e1e2bb9 (diff)
downloadrneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.tar.gz
rneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.tar.bz2
rneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.zip
Merge pull request #15502 from seandewar/vim-8.1.1921
Add method call support for more built-ins: vim-patch:8.1.{1336,1952,1961,1984}
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
-rw-r--r--src/nvim/testdir/test_expr.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim
index c49285621a..6343c47fde 100644
--- a/src/nvim/testdir/test_expr.vim
+++ b/src/nvim/testdir/test_expr.vim
@@ -147,7 +147,7 @@ function Test_printf_spec_s()
call assert_equal(string(value), printf('%s', value))
" funcref
- call assert_equal('printf', printf('%s', function('printf')))
+ call assert_equal('printf', printf('%s', 'printf'->function()))
" partial
call assert_equal(string(function('printf', ['%s'])), printf('%s', function('printf', ['%s'])))
@@ -477,7 +477,7 @@ func Test_funcref()
endfunc
call assert_equal(2, OneByName())
call assert_equal(1, OneByRef())
- let OneByRef = funcref('One')
+ let OneByRef = 'One'->funcref()
call assert_equal(2, OneByRef())
call assert_fails('echo funcref("{")', 'E475:')
let OneByRef = funcref("One", repeat(["foo"], 20))