# HG changeset patch # User Bram Moolenaar # Date 1671112804 -3600 # Node ID 09fe45711621ce541c28b935d4de4f4b0f0e90ee # Parent f0f208361e31f1a3b62c03513ebadee6b6ac82a2 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 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) diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim --- 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\\\" 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\\\" 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 diff --git a/src/version.c b/src/version.c --- 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,