diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-09-30 19:00:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-30 19:00:00 +0100 |
commit | 51491adfa86fd66a857cd7ec50d0b57dbdf3da59 (patch) | |
tree | 0eeb61a9d9c7e2e178e6649ae5961232728cf987 /src/testdir/test_menu.vim | |
parent | be01090efad242e30728275dea05420db6f96257 (diff) |
patch 8.2.3459: Vim9: need more tests for empty string argumentsv8.2.3459
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)
Diffstat (limited to 'src/testdir/test_menu.vim')
-rw-r--r-- | src/testdir/test_menu.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim index 3df156011e..c867162e5b 100644 --- a/src/testdir/test_menu.vim +++ b/src/testdir/test_menu.vim @@ -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 '<' |