diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-09 13:47:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 13:47:01 +0800 |
commit | 3ad845882413944a8d6ed3bd9da68c6b4cee0afb (patch) | |
tree | 56f889cfd0efd2106b57cfd2dfa171edf0666150 /test | |
parent | 89a525de9f2551e460cc91d40fd7afbb7e07622f (diff) | |
download | rneovim-3ad845882413944a8d6ed3bd9da68c6b4cee0afb.tar.gz rneovim-3ad845882413944a8d6ed3bd9da68c6b4cee0afb.tar.bz2 rneovim-3ad845882413944a8d6ed3bd9da68c6b4cee0afb.zip |
vim-patch:8.2.1067: expression "!expr->func()" does not work (#22585)
Problem: Expression "!expr->func()" does not work.
Solution: Apply plus and minus earlier. (closes vim/vim#6348)
https://github.com/vim/vim/commit/0b1cd52ff6bf690388f892be686a91721a082e55
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_expr.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim index 47f7f5eb0e..292a504df9 100644 --- a/test/old/testdir/test_expr.vim +++ b/test/old/testdir/test_expr.vim @@ -111,6 +111,13 @@ func Test_special_char() call assert_fails('echo "\<C-">') endfunc +func Test_method_with_prefix() + call assert_equal(1, !range(5)->empty()) + call assert_equal([0, 1, 2], --3->range()) + call assert_equal(0, !-3) + call assert_equal(1, !+-+0) +endfunc + func Test_option_value() " boolean set bri |