aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-04 14:48:34 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-05 06:47:24 +0800
commit5170a4a3692a53b1cc3f269f81e329f1757e33e9 (patch)
tree21ccd16aca2fbae823fa67b64d85b7861e09864c /src/nvim/testdir
parent93649cefab4d6864f21a1278e4cde076daf6adbc (diff)
downloadrneovim-5170a4a3692a53b1cc3f269f81e329f1757e33e9.tar.gz
rneovim-5170a4a3692a53b1cc3f269f81e329f1757e33e9.tar.bz2
rneovim-5170a4a3692a53b1cc3f269f81e329f1757e33e9.zip
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 vim/vim#8925) https://github.com/vim/vim/commit/51491adfa86fd66a857cd7ec50d0b57dbdf3da59
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_menu.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_menu.vim b/src/nvim/testdir/test_menu.vim
index 24d7420751..28db050f82 100644
--- a/src/nvim/testdir/test_menu.vim
+++ b/src/nvim/testdir/test_menu.vim
@@ -362,6 +362,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 '<'