|
Karsten Hopp |
0db917 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
0db917 |
Subject: Patch 7.4.744
|
|
Karsten Hopp |
0db917 |
Fcc: outbox
|
|
Karsten Hopp |
0db917 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0db917 |
Mime-Version: 1.0
|
|
Karsten Hopp |
0db917 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
0db917 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0db917 |
------------
|
|
Karsten Hopp |
0db917 |
|
|
Karsten Hopp |
0db917 |
Patch 7.4.744
|
|
Karsten Hopp |
0db917 |
Problem: No tests for Ruby and Perl.
|
|
Karsten Hopp |
0db917 |
Solution: Add minimal tests. (Ken Takata)
|
|
Karsten Hopp |
0db917 |
Files: src/testdir/test_perl.in, src/testdir/test_perl.ok,
|
|
Karsten Hopp |
0db917 |
src/testdir/test_ruby.in, src/testdir/test_ruby.ok,
|
|
Karsten Hopp |
0db917 |
src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
|
|
Karsten Hopp |
0db917 |
src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
|
|
Karsten Hopp |
0db917 |
src/testdir/Make_vms.mms, src/testdir/Makefile
|
|
Karsten Hopp |
0db917 |
|
|
Karsten Hopp |
0db917 |
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/test_perl.in 2015-06-19 15:45:02.098003107 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/test_perl.in 2015-06-19 15:22:58.479839592 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 0 ****
|
|
Karsten Hopp |
0db917 |
--- 1,26 ----
|
|
Karsten Hopp |
0db917 |
+ Tests for perl interface. vim: set ft=vim :
|
|
Karsten Hopp |
0db917 |
+
|
|
Karsten Hopp |
0db917 |
+ STARTTEST
|
|
Karsten Hopp |
0db917 |
+ :so small.vim
|
|
Karsten Hopp |
0db917 |
+ :set nocompatible viminfo+=nviminfo
|
|
Karsten Hopp |
0db917 |
+ :if !has('perl') | e! test.ok | wq! test.out | endif
|
|
Karsten Hopp |
0db917 |
+ :" change buffer contents
|
|
Karsten Hopp |
0db917 |
+ :perl VIM::DoCommand("normal /^1\n")
|
|
Karsten Hopp |
0db917 |
+ :perl $curline = VIM::Eval("line('.')")
|
|
Karsten Hopp |
0db917 |
+ :perl $curbuf->Set($curline, "1 changed line 1")
|
|
Karsten Hopp |
0db917 |
+ :" evaluate a List
|
|
Karsten Hopp |
0db917 |
+ :perl VIM::DoCommand("normal /^2\n")
|
|
Karsten Hopp |
0db917 |
+ :perl $curline = VIM::Eval("line('.')")
|
|
Karsten Hopp |
0db917 |
+ :let l = ["abc", "def"]
|
|
Karsten Hopp |
0db917 |
+ :perl << EOF
|
|
Karsten Hopp |
0db917 |
+ $l = VIM::Eval("l");
|
|
Karsten Hopp |
0db917 |
+ $curbuf->Append($curline, $l);
|
|
Karsten Hopp |
0db917 |
+ EOF
|
|
Karsten Hopp |
0db917 |
+ :normal j
|
|
Karsten Hopp |
0db917 |
+ :.perldo s|\n|/|g
|
|
Karsten Hopp |
0db917 |
+ :?^1?,$w! test.out
|
|
Karsten Hopp |
0db917 |
+ :qa!
|
|
Karsten Hopp |
0db917 |
+ ENDTEST
|
|
Karsten Hopp |
0db917 |
+
|
|
Karsten Hopp |
0db917 |
+ 1 line 1
|
|
Karsten Hopp |
0db917 |
+ 2 line 2
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/test_perl.ok 2015-06-19 15:45:02.102003065 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/test_perl.ok 2015-06-19 15:22:58.479839592 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 0 ****
|
|
Karsten Hopp |
0db917 |
--- 1,3 ----
|
|
Karsten Hopp |
0db917 |
+ 1 changed line 1
|
|
Karsten Hopp |
0db917 |
+ 2 line 2
|
|
Karsten Hopp |
0db917 |
+ abc/def/
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/test_ruby.in 2015-06-19 15:45:02.110002982 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/test_ruby.in 2015-06-19 15:22:58.479839592 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 0 ****
|
|
Karsten Hopp |
0db917 |
--- 1,25 ----
|
|
Karsten Hopp |
0db917 |
+ Tests for ruby interface. vim: set ft=vim :
|
|
Karsten Hopp |
0db917 |
+
|
|
Karsten Hopp |
0db917 |
+ STARTTEST
|
|
Karsten Hopp |
0db917 |
+ :so small.vim
|
|
Karsten Hopp |
0db917 |
+ :set nocompatible viminfo+=nviminfo
|
|
Karsten Hopp |
0db917 |
+ :if !has('ruby') | e! test.ok | wq! test.out | endif
|
|
Karsten Hopp |
0db917 |
+ :" change buffer contents
|
|
Karsten Hopp |
0db917 |
+ :ruby VIM.command("normal /^1\n")
|
|
Karsten Hopp |
0db917 |
+ :ruby $curbuf.line = "1 changed line 1"
|
|
Karsten Hopp |
0db917 |
+ :" evaluate a List
|
|
Karsten Hopp |
0db917 |
+ :ruby VIM.command("normal /^2\n")
|
|
Karsten Hopp |
0db917 |
+ :let l = ["abc", "def"]
|
|
Karsten Hopp |
0db917 |
+ :ruby << EOF
|
|
Karsten Hopp |
0db917 |
+ curline = $curbuf.line_number
|
|
Karsten Hopp |
0db917 |
+ l = VIM.evaluate("l");
|
|
Karsten Hopp |
0db917 |
+ $curbuf.append(curline, l.join("\n"))
|
|
Karsten Hopp |
0db917 |
+ EOF
|
|
Karsten Hopp |
0db917 |
+ :normal j
|
|
Karsten Hopp |
0db917 |
+ :.rubydo $_ = $_.gsub(/\n/, '/')
|
|
Karsten Hopp |
0db917 |
+ :?^1?,$w! test.out
|
|
Karsten Hopp |
0db917 |
+ :qa!
|
|
Karsten Hopp |
0db917 |
+ ENDTEST
|
|
Karsten Hopp |
0db917 |
+
|
|
Karsten Hopp |
0db917 |
+ 1 line 1
|
|
Karsten Hopp |
0db917 |
+ 2 line 2
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/test_ruby.ok 2015-06-19 15:45:02.114002940 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/test_ruby.ok 2015-06-19 15:22:58.479839592 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 0 ****
|
|
Karsten Hopp |
0db917 |
--- 1,3 ----
|
|
Karsten Hopp |
0db917 |
+ 1 changed line 1
|
|
Karsten Hopp |
0db917 |
+ 2 line 2
|
|
Karsten Hopp |
0db917 |
+ abc/def
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Make_amiga.mak 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Make_amiga.mak 2015-06-19 15:25:07.546490522 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 53,59 ****
|
|
Karsten Hopp |
0db917 |
--- 53,61 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 198,204 ****
|
|
Karsten Hopp |
0db917 |
--- 200,208 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out: test_marks.in
|
|
Karsten Hopp |
0db917 |
test_nested_function.out: test_nested_function.in
|
|
Karsten Hopp |
0db917 |
test_options.out: test_options.in
|
|
Karsten Hopp |
0db917 |
+ test_perl.out: test_perl.in
|
|
Karsten Hopp |
0db917 |
test_qf_title.out: test_qf_title.in
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out: test_ruby.in
|
|
Karsten Hopp |
0db917 |
test_set.out: test_set.in
|
|
Karsten Hopp |
0db917 |
test_signs.out: test_signs.in
|
|
Karsten Hopp |
0db917 |
test_textobjects.out: test_textobjects.in
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Make_dos.mak 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Make_dos.mak 2015-06-19 15:25:17.606385377 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 52,58 ****
|
|
Karsten Hopp |
0db917 |
--- 52,60 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Make_ming.mak 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Make_ming.mak 2015-06-19 15:25:30.650249042 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 74,80 ****
|
|
Karsten Hopp |
0db917 |
--- 74,82 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Make_os2.mak 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Make_os2.mak 2015-06-19 15:25:42.358126674 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 54,60 ****
|
|
Karsten Hopp |
0db917 |
--- 54,62 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Make_vms.mms 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Make_vms.mms 2015-06-19 15:25:50.038046403 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 113,119 ****
|
|
Karsten Hopp |
0db917 |
--- 113,121 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/testdir/Makefile 2015-06-19 14:06:29.043993697 +0200
|
|
Karsten Hopp |
0db917 |
--- src/testdir/Makefile 2015-06-19 15:26:11.261824557 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 50,56 ****
|
|
Karsten Hopp |
0db917 |
--- 50,58 ----
|
|
Karsten Hopp |
0db917 |
test_marks.out \
|
|
Karsten Hopp |
0db917 |
test_nested_function.out \
|
|
Karsten Hopp |
0db917 |
test_options.out \
|
|
Karsten Hopp |
0db917 |
+ test_perl.out \
|
|
Karsten Hopp |
0db917 |
test_qf_title.out \
|
|
Karsten Hopp |
0db917 |
+ test_ruby.out \
|
|
Karsten Hopp |
0db917 |
test_set.out \
|
|
Karsten Hopp |
0db917 |
test_signs.out \
|
|
Karsten Hopp |
0db917 |
test_textobjects.out \
|
|
Karsten Hopp |
0db917 |
*** ../vim-7.4.743/src/version.c 2015-06-19 15:17:49.895065569 +0200
|
|
Karsten Hopp |
0db917 |
--- src/version.c 2015-06-19 15:24:24.582939585 +0200
|
|
Karsten Hopp |
0db917 |
***************
|
|
Karsten Hopp |
0db917 |
*** 743,744 ****
|
|
Karsten Hopp |
0db917 |
--- 743,746 ----
|
|
Karsten Hopp |
0db917 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0db917 |
+ /**/
|
|
Karsten Hopp |
0db917 |
+ 744,
|
|
Karsten Hopp |
0db917 |
/**/
|
|
Karsten Hopp |
0db917 |
|
|
Karsten Hopp |
0db917 |
--
|
|
Karsten Hopp |
0db917 |
"A clear conscience is usually the sign of a bad memory."
|
|
Karsten Hopp |
0db917 |
-- Steven Wright
|
|
Karsten Hopp |
0db917 |
|
|
Karsten Hopp |
0db917 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0db917 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0db917 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
0db917 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|