forked from aniani/vim
patch 8.2.3459: Vim9: need more tests for empty string arguments
Problem: Vim9: need more tests for empty string arguments.
Solution: Add more tests. Also use empty argument with menu_info() to get
the top-level menu names. (Yegappan Lakshmanan, closes #8925)
This commit is contained in:
committed by
Bram Moolenaar
parent
be01090efa
commit
51491adfa8
@@ -407,6 +407,9 @@ func Test_menu_info()
|
||||
\ shortcut: '', modes: ' ', submenus: ['menu']},
|
||||
\ menu_info(']Test'))
|
||||
unmenu ]Test
|
||||
|
||||
" Test for getting all the top-level menu names
|
||||
call assert_notequal(menu_info('').submenus, [])
|
||||
endfunc
|
||||
|
||||
" Test for <special> keyword in a menu with 'cpo' containing '<'
|
||||
|
||||
Reference in New Issue
Block a user