]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2116: No test for defining sign without attribute v9.0.2116
authorLuuk van Baal <luukvbaal@gmail.com>
Sun, 19 Nov 2023 09:55:35 +0000 (10:55 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Nov 2023 09:57:02 +0000 (10:57 +0100)
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>
src/testdir/test_signs.vim
src/version.c

index ffde9b87395f0ea0d90ed69c4ee83425e4a08f0d..0d76d7a445b8ac665574937db7be9b7e7e78a2a9 100644 (file)
@@ -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()
index 5dbfc5d0837d347ebbfba1254ed86491de50fa3e..ed113381277bc5e1b2993515e75531d501ef5e9c 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2116,
 /**/
     2115,
 /**/