]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2197: assert arguments order reversed v8.2.2197
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 11:50:20 +0000 (12:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Dec 2020 11:50:20 +0000 (12:50 +0100)
Problem:    Assert arguments order reversed.
Solution:   Swap the arguments. (Christian Brabandt, closes #7531)

src/testdir/test_registers.vim
src/version.c

index 14febad70249e69cb20f615c80d55ebf78eccf9f..b2916f4d06fab2defe394d02be8e5ffdd4be7b93 100644 (file)
@@ -703,9 +703,9 @@ func Test_insert_small_delete()
   call setline(1, ['foo foobar bar'])
   call cursor(1,1)
   exe ":norm! ciw'\<C-R>-'"
-  call assert_equal(getline(1), "'foo' foobar bar")
+  call assert_equal("'foo' foobar bar", getline(1))
   exe ":norm! w.w."
-  call assert_equal(getline(1), "'foo' 'foobar' 'bar'")
+  call assert_equal("'foo' 'foobar' 'bar'", getline(1))
   bwipe!
 endfunc
 
index 435f3b8c51021461789329281305bed1ba4900e1..493194f953f87db1a29dd45bbc7ceeea0d88aeb5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2197,
 /**/
     2196,
 /**/