]> granicus.if.org Git - vim/commitdiff
patch 8.1.2166: rubyeval() not tested as a method v8.1.2166
authorBram Moolenaar <Bram@vim.org>
Wed, 16 Oct 2019 20:36:11 +0000 (22:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 16 Oct 2019 20:36:11 +0000 (22:36 +0200)
Problem:    Rubyeval() not tested as a method.
Solution:   Change a test case.

src/testdir/test_ruby.vim
src/version.c

index f679bbd5f4ae215e47ff7e964d5dd06c9e9bfb62..8f83a304089802b9ae62bd69576df252262d5899 100644 (file)
@@ -46,7 +46,7 @@ func Test_set_cursor()
   " Check that movement after setting cursor position keeps current column.
   normal j
   call assert_equal([2, 6], [line('.'), col('.')])
-  call assert_equal([2, 5], rubyeval('$curwin.cursor'))
+  call assert_equal([2, 5], '$curwin.cursor'->rubyeval())
 
   call assert_fails('ruby $curwin.cursor = [1]',
         \           'ArgumentError: array length must be 2')
index e7ba706b436974b3ea5da5a044d8a44ca96dabcd..c7d0ace4890dda29446be3c45832463f9369b959 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2166,
 /**/
     2165,
 /**/