Skip to content

Commit 757f321

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.1.0332: tests: some assert_equal() calls have wrong order of args
Problem: tests: some assert_equal() calls have wrong order of args Solution: Correct the order (zeertzjq). closes: #14555 Signed-off-by: zeertzjq <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent fc1dabd commit 757f321

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/testdir/test_cmdline.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3733,9 +3733,9 @@ func Test_custom_completion()
37333733
call assert_fails("call getcompletion('', 'custom')", 'E475:')
37343734
call assert_fails("call getcompletion('', 'customlist')", 'E475:')
37353735

3736-
call assert_equal(getcompletion('', 'custom,CustomComplete1'), ['a', 'b', 'c'])
3737-
call assert_equal(getcompletion('', 'customlist,CustomComplete2'), ['a', 'b'])
3738-
call assert_equal(getcompletion('b', 'customlist,CustomComplete2'), ['b'])
3736+
call assert_equal(['a', 'b', 'c'], getcompletion('', 'custom,CustomComplete1'))
3737+
call assert_equal(['a', 'b'], getcompletion('', 'customlist,CustomComplete2'))
3738+
call assert_equal(['b'], getcompletion('b', 'customlist,CustomComplete2'))
37393739

37403740
delcom Test1
37413741
delcom Test2

src/testdir/test_digraph.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,13 +595,13 @@ func Test_digraph_getlist_function()
595595
call digraph_setlist([['aa', ''], ['bb', '']])
596596

597597
for pair in digraph_getlist(1)
598-
call assert_equal(digraph_get(pair[0]), pair[1])
598+
call assert_equal(pair[1], digraph_get(pair[0]))
599599
endfor
600600

601601
" We don't know how many digraphs are registered before, so check the number
602602
" of digraphs returned.
603603
call assert_equal(digraph_getlist()->len(), digraph_getlist(0)->len())
604-
call assert_notequal((digraph_getlist()->len()), digraph_getlist(1)->len())
604+
call assert_notequal(digraph_getlist()->len(), digraph_getlist(1)->len())
605605

606606
call assert_fails('call digraph_getlist(0z12)', 'E974: Using a Blob as a Number')
607607
endfunc

src/testdir/test_registers.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,13 +797,13 @@ func Test_ve_blockpaste()
797797
call cursor(1,1)
798798
exe ":norm! \<C-V>3ljdP"
799799
call assert_equal(1, col('.'))
800-
call assert_equal(getline(1, 2), ['QWERTZ', 'ASDFGH'])
800+
call assert_equal(['QWERTZ', 'ASDFGH'], getline(1, 2))
801801
call cursor(1,1)
802802
exe ":norm! \<C-V>3ljd"
803803
call cursor(1,1)
804804
norm! $3lP
805805
call assert_equal(5, col('.'))
806-
call assert_equal(getline(1, 2), ['TZ QWER', 'GH ASDF'])
806+
call assert_equal(['TZ QWER', 'GH ASDF'], getline(1, 2))
807807
set ve&vim
808808
bwipe!
809809
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
332,
707709
/**/
708710
331,
709711
/**/

0 commit comments

Comments
 (0)