Patch 9.0.1062
Problem: Some test function names do not match what they are doing.
Solution: Leave out user data for the test that is called "NoUserData".
(closes #11703)
Files: src/testdir/test_ins_complete.vim
*** ../vim-9.0.1061/src/testdir/test_ins_complete.vim 2022-09-29
21:01:52.202807948 +0100
--- src/testdir/test_ins_complete.vim 2022-12-15 13:41:53.678696095 +0000
***************
*** 236,242 ****
\ 'menu': 'extra text',
\ 'info': 'words are cool',
\ 'kind': 'W',
! \ 'user_data': 'test'
\ }
\ ]
\ }
--- 236,242 ----
\ 'menu': 'extra text',
\ 'info': 'words are cool',
\ 'kind': 'W',
! \ 'user_data': ['one', 'two']
\ }
\ ]
\ }
***************
*** 252,258 ****
call assert_equal( 'extra text', v:completed_item[ 'menu' ] )
call assert_equal( 'words are cool', v:completed_item[ 'info' ] )
call assert_equal( 'W', v:completed_item[ 'kind' ] )
! call assert_equal( 'test', v:completed_item[ 'user_data' ] )
if a:pre
call assert_equal('function', complete_info().mode)
--- 252,258 ----
call assert_equal( 'extra text', v:completed_item[ 'menu' ] )
call assert_equal( 'words are cool', v:completed_item[ 'info' ] )
call assert_equal( 'W', v:completed_item[ 'kind' ] )
! call assert_equal( ['one', 'two'], v:completed_item[ 'user_data' ] )
if a:pre
call assert_equal('function', complete_info().mode)
***************
*** 285,291 ****
execute "normal a\<C-X>\<C-U>\<C-Y>"
set completefunc&
! call assert_equal('test', v:completed_item[ 'user_data' ])
call assert_true(s:called_completedone)
let s:called_completedone = 0
--- 285,291 ----
execute "normal a\<C-X>\<C-U>\<C-Y>"
set completefunc&
! call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ])
call assert_true(s:called_completedone)
let s:called_completedone = 0
***************
*** 305,311 ****
\ 'menu': 'extra text',
\ 'info': 'words are cool',
\ 'kind': 'W',
- \ 'user_data': ['one', 'two'],
\ }
\ ]
\ }
--- 305,310 ----
***************
*** 317,323 ****
call assert_equal( 'extra text', v:completed_item[ 'menu' ] )
call assert_equal( 'words are cool', v:completed_item[ 'info' ] )
call assert_equal( 'W', v:completed_item[ 'kind' ] )
! call assert_equal( ['one', 'two'], v:completed_item[ 'user_data' ] )
let s:called_completedone = 1
endfunc
--- 316,322 ----
call assert_equal( 'extra text', v:completed_item[ 'menu' ] )
call assert_equal( 'words are cool', v:completed_item[ 'info' ] )
call assert_equal( 'W', v:completed_item[ 'kind' ] )
! call assert_equal( '', v:completed_item[ 'user_data' ] )
let s:called_completedone = 1
endfunc
***************
*** 329,335 ****
execute "normal a\<C-X>\<C-U>\<C-Y>"
set completefunc&
! call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ])
call assert_true(s:called_completedone)
let s:called_completedone = 0
--- 328,334 ----
execute "normal a\<C-X>\<C-U>\<C-Y>"
set completefunc&
! call assert_equal('', v:completed_item[ 'user_data' ])
call assert_true(s:called_completedone)
let s:called_completedone = 0
*** ../vim-9.0.1061/src/version.c 2022-12-15 13:14:17.415527399 +0000
--- src/version.c 2022-12-15 13:45:38.442814097 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1062,
/**/
--
Yah, well, we had to carve our electrons out of driftwood we'd
find. In the winter. Uphill. Both ways.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221215134913.70AA31C0395%40moolenaar.net.