diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 08:51:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-07 08:51:54 +0800 |
| commit | d6497c33b7039d143cfdb61cea5c71fa3d49aa32 (patch) | |
| tree | 33d9c5f6e49c1d4ffcefcc70be6e3cfb46e47bb5 /src/nvim/testdir/test_expr.vim | |
| parent | 897186f409e6f376e52a5e680d307008ba5be5cd (diff) | |
| parent | 84881674fd702cad5b7572ac868f6d40965a2806 (diff) | |
| download | rneovim-d6497c33b7039d143cfdb61cea5c71fa3d49aa32.tar.gz rneovim-d6497c33b7039d143cfdb61cea5c71fa3d49aa32.tar.bz2 rneovim-d6497c33b7039d143cfdb61cea5c71fa3d49aa32.zip | |
Merge pull request #20944 from zeertzjq/vim-8.2.3705
vim-patch:8.2.{3665,3705,3712,3725},9.0.{0246,0389}
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
| -rw-r--r-- | src/nvim/testdir/test_expr.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim index ea874cc398..9dbc923b96 100644 --- a/src/nvim/testdir/test_expr.vim +++ b/src/nvim/testdir/test_expr.vim @@ -496,6 +496,13 @@ func Test_function_with_funcref() call assert_fails("call function('foo()')", 'E475:') call assert_fails("call function('foo()')", 'foo()') call assert_fails("function('')", 'E129:') + + let Len = {s -> strlen(s)} + call assert_equal(6, Len('foobar')) + let name = string(Len) + " can evaluate "function('<lambda>99')" + call execute('let Ref = ' .. name) + call assert_equal(4, Ref('text')) endfunc func Test_funcref() |