changeset 33795:4af3b4cd8d2e v9.0.2116

patch 9.0.2116: No test for defining sign without attribute Commit: https://github.com/vim/vim/commit/e670d17342ea05af253b0452afb980397fa143be Author: Luuk van Baal <luukvbaal@gmail.com> Date: Sun Nov 19 10:55:35 2023 +0100 patch 9.0.2116: No test for defining sign without attribute Problem: No test for defining sign without attribute Solution: Add test for defining sign without attributes closes: #13544 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Nov 2023 11:00:10 +0100
parents 403760f5b403
children d16604014217
files src/testdir/test_signs.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_signs.vim
+++ b/src/testdir/test_signs.vim
@@ -194,6 +194,11 @@ func Test_sign()
   sign undefine Sign3
   call assert_fails("sign place 41 line=3 name=Sign1 buffer=" .
 			  \ bufnr('%'), 'E155:')
+
+  " Defining a sign without attributes is allowed.
+  sign define Sign1
+  call assert_equal([{'name': 'Sign1'}], sign_getdefined())
+  sign undefine Sign1
 endfunc
 
 func Test_sign_many_bytes()
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2116,
+/**/
     2115,
 /**/
     2114,