comparison src/testdir/test_expr.vim @ 21032:f80e822a310d v8.2.1067

patch 8.2.1067: expression "!expr->func()" does not work Commit: https://github.com/vim/vim/commit/0b1cd52ff6bf690388f892be686a91721a082e55 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 27 13:11:50 2020 +0200 patch 8.2.1067: expression "!expr->func()" does not work Problem: Expression "!expr->func()" does not work. Solution: Apply plus and minus earlier. (closes https://github.com/vim/vim/issues/6348)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Jun 2020 13:15:03 +0200
parents 2fb397573541
children 6a4806e326dd
comparison
equal deleted inserted replaced
21031:d49456e1977e 21032:f80e822a310d
106 endfunc 106 endfunc
107 107
108 func Test_special_char() 108 func Test_special_char()
109 " The failure is only visible using valgrind. 109 " The failure is only visible using valgrind.
110 call assert_fails('echo "\<C-">') 110 call assert_fails('echo "\<C-">')
111 endfunc
112
113 func Test_method_with_prefix()
114 call assert_equal(1, !range(5)->empty())
115 call assert_equal([0, 1, 2], --3->range())
116 call assert_equal(0, !-3)
117 call assert_equal(1, !+-+0)
111 endfunc 118 endfunc
112 119
113 func Test_option_value() 120 func Test_option_value()
114 " boolean 121 " boolean
115 set bri 122 set bri