mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:partial:9.1.1708: tests: various tests can be improved (#35548)
Problem: tests: various tests can be improved
Solution: Use string interpolation to concatenate strings in
test_winfixbuf, check for specific errors in assert_fails()
(Yegappan Lakshmanan)
closes: vim/vim#18151
97ea879b9b
Cherry-pick Test_file_perm.vim changes from patch 9.0.{0363,0611}.
Skip Test_colornames_assignment_and_unassignment().
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -22,7 +22,7 @@ func Test_equal()
|
||||
call assert_false(base.method == instance.other)
|
||||
call assert_false([base.method] == [instance.other])
|
||||
|
||||
call assert_fails('echo base.method > instance.method')
|
||||
call assert_fails('echo base.method > instance.method', 'E694: Invalid operation for Funcrefs')
|
||||
" Nvim doesn't have null functions
|
||||
" call assert_equal(0, test_null_function() == function('min'))
|
||||
" call assert_equal(1, test_null_function() == test_null_function())
|
||||
|
||||
Reference in New Issue
Block a user