Commit: patch 9.1.1171: tests: wrong arguments passed to assert_equal()

3 views
Skip to first unread message

Christian Brabandt

unread,
Mar 4, 2025, 3:45:11 PM3/4/25
to vim...@googlegroups.com
patch 9.1.1171: tests: wrong arguments passed to assert_equal()

Commit: https://github.com/vim/vim/commit/a95085e0fc2e46c7136982e8ba1ae91375991bfd
Author: zeertzjq <zeer...@outlook.com>
Date: Tue Mar 4 21:33:57 2025 +0100

patch 9.1.1171: tests: wrong arguments passed to assert_equal()

Problem: tests: wrong arguments passed to assert_equal()
(after v9.1.1167).
Solution: Swap arguments in the assert_equal() call (zeertzjq).

closes: #16782

Signed-off-by: zeertzjq <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim
index 0ff1df84c..981f9d227 100644
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -1162,7 +1162,7 @@ func Test_mark_from_yank()
normal! yi"
call assert_equal([0, 1, 10, 0], getpos("']"))
normal! ya"
- call assert_equal(getpos("']"), [0, 1, 13, 0], getpos("']"))
+ call assert_equal([0, 1, 13, 0], getpos("']"))
" single quote object
call setline(1, 'test ''yank'' mark')
normal! yi'
diff --git a/src/version.c b/src/version.c
index 1a23fe941..aac7ed1ae 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 */
+/**/
+ 1171,
/**/
1170,
/**/
Reply all
Reply to author
Forward
0 new messages