patch 9.0.2116: No test for defining sign without attribute
Commit:
https://github.com/vim/vim/commit/e670d17342ea05af253b0452afb980397fa143be
Author: Luuk van Baal <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/testdir/test_signs.vim b/src/testdir/test_signs.vim
index ffde9b873..0d76d7a44 100644
--- 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()
diff --git a/src/version.c b/src/version.c
index 5dbfc5d08..ed1133812 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2116,
/**/
2115,
/**/
--
--
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/E1r4eb4-001ST9-EU%40256bit.org.