changeset 31459:09fe45711621 v9.0.1062

patch 9.0.1062: some test function names do not match what they are doing Commit: https://github.com/vim/vim/commit/4cd45f1408321905019614b40a2173fe0456a96d Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Dec 15 13:48:30 2022 +0000 patch 9.0.1062: some test function names do not match what they are doing 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Dec 2022 15:00:04 +0100
parents f0f208361e31
children 0a5992bd6a1e
files src/testdir/test_ins_complete.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -236,7 +236,7 @@ func s:CompleteDone_CompleteFuncDict( fi
 	      \ 'menu': 'extra text',
 	      \ 'info': 'words are cool',
 	      \ 'kind': 'W',
-	      \ 'user_data': 'test'
+	      \ 'user_data': ['one', 'two']
 	    \ }
 	  \ ]
 	\ }
@@ -252,7 +252,7 @@ func s:CompleteDone_CheckCompletedItemDi
   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' ] )
+  call assert_equal( ['one', 'two'],   v:completed_item[ 'user_data' ] )
 
   if a:pre
     call assert_equal('function', complete_info().mode)
@@ -285,7 +285,7 @@ func Test_CompleteDoneDict()
   execute "normal a\<C-X>\<C-U>\<C-Y>"
   set completefunc&
 
-  call assert_equal('test', v:completed_item[ 'user_data' ])
+  call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ])
   call assert_true(s:called_completedone)
 
   let s:called_completedone = 0
@@ -305,7 +305,6 @@ func s:CompleteDone_CompleteFuncDictNoUs
 	      \ 'menu': 'extra text',
 	      \ 'info': 'words are cool',
 	      \ 'kind': 'W',
-	      \ 'user_data': ['one', 'two'],
 	    \ }
 	  \ ]
 	\ }
@@ -317,7 +316,7 @@ func s:CompleteDone_CheckCompletedItemDi
   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' ] )
+  call assert_equal( '',               v:completed_item[ 'user_data' ] )
 
   let s:called_completedone = 1
 endfunc
@@ -329,7 +328,7 @@ func Test_CompleteDoneDictNoUserData()
   execute "normal a\<C-X>\<C-U>\<C-Y>"
   set completefunc&
 
-  call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ])
+  call assert_equal('', v:completed_item[ 'user_data' ])
   call assert_true(s:called_completedone)
 
   let s:called_completedone = 0
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1062,
+/**/
     1061,
 /**/
     1060,