Patch 8.2.1021
Problem:    Ruby interface not tested enough.
Solution:   Add a couple more tests. (Dominique Pellé, closes #6301)
Files:      src/testdir/test_ruby.vim


*** ../vim-8.2.1020/src/testdir/test_ruby.vim   2020-05-01 14:10:10.192390729 
+0200
--- src/testdir/test_ruby.vim   2020-06-20 15:59:08.005130715 +0200
***************
*** 26,31 ****
--- 26,43 ----
    %bwipe!
  endfunc
  
+ func Test_rubydo_dollar_underscore()
+   new
+   call setline(1, ['one', 'two', 'three', 'four'])
+   2,3rubydo $_ = '[' + $_  + ']'
+   call assert_equal(['one', '[two]', '[three]', 'four'], getline(1, '$'))
+   bwipe!
+ 
+   call assert_fails('rubydo $_ = 0', 'E265:')
+   call assert_fails('rubydo (')
+   bwipe!
+ endfunc
+ 
  func Test_rubyfile()
    " Check :rubyfile does not SEGV with Ruby level exception but just fails
    let tempfile = tempname() . '.rb'
***************
*** 395,400 ****
--- 407,421 ----
    call assert_equal(0, len(messages))
  endfunc
  
+ func Test_rubyeval_error()
+   " On Linux or Windows the error matches:
+   "   "syntax error, unexpected end-of-input"
+   " whereas on macOS in CI, the error message makes less sense:
+   "   "SyntaxError: array length must be 2"
+   " Unclear why. The test does not check the error message.
+   call assert_fails('call rubyeval("(")')
+ endfunc
+ 
  " Test for various heredoc syntax
  func Test_ruby_heredoc()
    ruby << END
*** ../vim-8.2.1020/src/version.c       2020-06-20 15:03:34.978136840 +0200
--- src/version.c       2020-06-20 16:00:07.460987928 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1021,
  /**/

-- 
ARTHUR: Go on, Bors, chop its head off.
BORS:   Right.  Silly little bleeder.  One rabbit stew coming up.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/202006201401.05KE18M1910796%40masaka.moolenaar.net.

Raspunde prin e-mail lui