1
0
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:
Yegappan Lakshmanan
2021-09-30 19:00:00 +01:00
committed by Bram Moolenaar
parent be01090efa
commit 51491adfa8
5 changed files with 65 additions and 4 deletions

View File

@@ -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 '<'