|
Karsten Hopp |
5a39af |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5a39af |
Subject: Patch 7.3.491
|
|
Karsten Hopp |
5a39af |
Fcc: outbox
|
|
Karsten Hopp |
5a39af |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5a39af |
Mime-Version: 1.0
|
|
Karsten Hopp |
5a39af |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5a39af |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5a39af |
------------
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
Patch 7.3.491
|
|
Karsten Hopp |
5a39af |
Problem: No tests for Lua.
|
|
Karsten Hopp |
5a39af |
Solution: Add some simple tests for Lua. (Luis Carvalho)
|
|
Karsten Hopp |
5a39af |
Files: src/testdir/test1.in, src/testdir/test85.in, src/testdir/test85.ok
|
|
Karsten Hopp |
5a39af |
src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
|
|
Karsten Hopp |
5a39af |
src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
|
|
Karsten Hopp |
5a39af |
src/testdir/Make_vms.mms, src/testdir/Makefile
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/test1.in 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/test1.in 2012-04-05 16:37:37.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 15,20 ****
|
|
Karsten Hopp |
5a39af |
--- 15,21 ----
|
|
Karsten Hopp |
5a39af |
be set like small.vim above. mbyte.vim is sourced by tests that require the
|
|
Karsten Hopp |
5a39af |
+multi_byte feature.
|
|
Karsten Hopp |
5a39af |
Similar logic is applied to the +mzscheme feature, using mzscheme.vim.
|
|
Karsten Hopp |
5a39af |
+ Similar logic is applied to the +lua feature, using lua.vim.
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
STARTTEST
|
|
Karsten Hopp |
5a39af |
:" Write a single line to test.out to check if testing works at all.
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 28,37 ****
|
|
Karsten Hopp |
5a39af |
--- 29,45 ----
|
|
Karsten Hopp |
5a39af |
qa!
|
|
Karsten Hopp |
5a39af |
?:w! mbyte.vim
|
|
Karsten Hopp |
5a39af |
:w! mzscheme.vim
|
|
Karsten Hopp |
5a39af |
+ :w! lua.vim
|
|
Karsten Hopp |
5a39af |
+ :"
|
|
Karsten Hopp |
5a39af |
:" If +multi_byte feature supported, make mbyte.vim empty.
|
|
Karsten Hopp |
5a39af |
:if has("multi_byte") | sp another | w! mbyte.vim | q | endif
|
|
Karsten Hopp |
5a39af |
+ :"
|
|
Karsten Hopp |
5a39af |
:" If +mzscheme feature supported, make mzscheme.vim empty.
|
|
Karsten Hopp |
5a39af |
:if has("mzscheme") | sp another | w! mzscheme.vim | q | endif
|
|
Karsten Hopp |
5a39af |
+ :"
|
|
Karsten Hopp |
5a39af |
+ :" If +lua feature supported, make lua.vim empty.
|
|
Karsten Hopp |
5a39af |
+ :if has("lua") | sp another | w! lua.vim | q | endif
|
|
Karsten Hopp |
5a39af |
+ :"
|
|
Karsten Hopp |
5a39af |
:" If +eval feature supported quit here, leaving tiny.vim and small.vim empty.
|
|
Karsten Hopp |
5a39af |
:" Otherwise write small.vim to skip the test.
|
|
Karsten Hopp |
5a39af |
:if 1 | q! | endif
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/test85.in 2012-04-05 16:56:12.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/test85.in 2012-04-05 16:44:00.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 0 ****
|
|
Karsten Hopp |
5a39af |
--- 1,42 ----
|
|
Karsten Hopp |
5a39af |
+ Test for Lua interface and luaeval() function
|
|
Karsten Hopp |
5a39af |
+
|
|
Karsten Hopp |
5a39af |
+ STARTTEST
|
|
Karsten Hopp |
5a39af |
+ :so small.vim
|
|
Karsten Hopp |
5a39af |
+ :so lua.vim
|
|
Karsten Hopp |
5a39af |
+ :set nocompatible viminfo+=nviminfo
|
|
Karsten Hopp |
5a39af |
+ :lua l = vim.list():add"item0":add"dictionary with list OK":add"item2"
|
|
Karsten Hopp |
5a39af |
+ :lua h = vim.dict(); h.list = l
|
|
Karsten Hopp |
5a39af |
+ :call garbagecollect()
|
|
Karsten Hopp |
5a39af |
+ /^1
|
|
Karsten Hopp |
5a39af |
+ :" change buffer contents
|
|
Karsten Hopp |
5a39af |
+ :lua curbuf = vim.buffer()
|
|
Karsten Hopp |
5a39af |
+ :lua curline = vim.eval"line('.')"
|
|
Karsten Hopp |
5a39af |
+ :lua curbuf[curline] = "1 changed line 1"
|
|
Karsten Hopp |
5a39af |
+ :" scalar test
|
|
Karsten Hopp |
5a39af |
+ :let tmp_string = luaeval('"string"')
|
|
Karsten Hopp |
5a39af |
+ :let tmp_1000 = luaeval('1000')
|
|
Karsten Hopp |
5a39af |
+ :if printf("%s%.0f", tmp_string, tmp_1000) == "string1000"
|
|
Karsten Hopp |
5a39af |
+ :let scalar_res = "OK"
|
|
Karsten Hopp |
5a39af |
+ :else
|
|
Karsten Hopp |
5a39af |
+ :let scalar_res = "FAILED"
|
|
Karsten Hopp |
5a39af |
+ :endif
|
|
Karsten Hopp |
5a39af |
+ :call append(search("^1"), "scalar test " . scalar_res)
|
|
Karsten Hopp |
5a39af |
+ :" dictionary containing a list
|
|
Karsten Hopp |
5a39af |
+ :let tmp = luaeval("h").list[1]
|
|
Karsten Hopp |
5a39af |
+ :/^2/put =tmp
|
|
Karsten Hopp |
5a39af |
+ :" circular list (at the same time test lists containing lists)
|
|
Karsten Hopp |
5a39af |
+ :lua l[2] = l
|
|
Karsten Hopp |
5a39af |
+ :let l2 = luaeval("h").list
|
|
Karsten Hopp |
5a39af |
+ :if l2[2] == l2
|
|
Karsten Hopp |
5a39af |
+ :let res = "OK"
|
|
Karsten Hopp |
5a39af |
+ :else
|
|
Karsten Hopp |
5a39af |
+ :let res = "FAILED"
|
|
Karsten Hopp |
5a39af |
+ :endif
|
|
Karsten Hopp |
5a39af |
+ :call setline(search("^3"), "circular test " . res)
|
|
Karsten Hopp |
5a39af |
+ :?^1?,$w! test.out
|
|
Karsten Hopp |
5a39af |
+ :qa!
|
|
Karsten Hopp |
5a39af |
+ ENDTEST
|
|
Karsten Hopp |
5a39af |
+
|
|
Karsten Hopp |
5a39af |
+ 1 line 1
|
|
Karsten Hopp |
5a39af |
+ 2 line 2
|
|
Karsten Hopp |
5a39af |
+ 3 line 3
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/test85.ok 2012-04-05 16:56:12.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/test85.ok 2012-04-05 16:18:56.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 0 ****
|
|
Karsten Hopp |
5a39af |
--- 1,5 ----
|
|
Karsten Hopp |
5a39af |
+ 1 changed line 1
|
|
Karsten Hopp |
5a39af |
+ scalar test OK
|
|
Karsten Hopp |
5a39af |
+ 2 line 2
|
|
Karsten Hopp |
5a39af |
+ dictionary with list OK
|
|
Karsten Hopp |
5a39af |
+ circular test OK
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Make_amiga.mak 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Make_amiga.mak 2012-04-05 16:21:55.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 13,18 ****
|
|
Karsten Hopp |
5a39af |
--- 13,19 ----
|
|
Karsten Hopp |
5a39af |
# test25 uses symbolic link
|
|
Karsten Hopp |
5a39af |
# test27 can't edit file with "*"
|
|
Karsten Hopp |
5a39af |
# test52 only for Win32
|
|
Karsten Hopp |
5a39af |
+ # test85 no Lua interface
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|
Karsten Hopp |
5a39af |
test7.out test8.out test9.out \
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Make_dos.mak 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Make_dos.mak 2012-04-05 16:22:16.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 30,36 ****
|
|
Karsten Hopp |
5a39af |
test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
--- 30,36 ----
|
|
Karsten Hopp |
5a39af |
test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out test85.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Make_ming.mak 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Make_ming.mak 2012-04-05 16:22:25.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 50,56 ****
|
|
Karsten Hopp |
5a39af |
test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
--- 50,56 ----
|
|
Karsten Hopp |
5a39af |
test68.out test69.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out test85.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS32 = test50.out test70.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Make_os2.mak 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Make_os2.mak 2012-04-05 16:22:38.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 13,18 ****
|
|
Karsten Hopp |
5a39af |
--- 13,19 ----
|
|
Karsten Hopp |
5a39af |
# test25 uses symbolic link
|
|
Karsten Hopp |
5a39af |
# test27 can't edit file with "*" in file name
|
|
Karsten Hopp |
5a39af |
# test52 only for Win32
|
|
Karsten Hopp |
5a39af |
+ # test85 no Lua interface
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|
Karsten Hopp |
5a39af |
test7.out test8.out test9.out \
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Make_vms.mms 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Make_vms.mms 2012-04-05 16:23:08.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 4,10 ****
|
|
Karsten Hopp |
5a39af |
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
|
Karsten Hopp |
5a39af |
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
|
Karsten Hopp |
5a39af |
#
|
|
Karsten Hopp |
5a39af |
! # Last change: 2012 Mar 28
|
|
Karsten Hopp |
5a39af |
#
|
|
Karsten Hopp |
5a39af |
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
|
Karsten Hopp |
5a39af |
# Edit the lines in the Configuration section below to select.
|
|
Karsten Hopp |
5a39af |
--- 4,10 ----
|
|
Karsten Hopp |
5a39af |
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
|
Karsten Hopp |
5a39af |
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
|
Karsten Hopp |
5a39af |
#
|
|
Karsten Hopp |
5a39af |
! # Last change: 2012 Apr 05
|
|
Karsten Hopp |
5a39af |
#
|
|
Karsten Hopp |
5a39af |
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
|
Karsten Hopp |
5a39af |
# Edit the lines in the Configuration section below to select.
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 89,94 ****
|
|
Karsten Hopp |
5a39af |
--- 89,95 ----
|
|
Karsten Hopp |
5a39af |
# with too many dots).
|
|
Karsten Hopp |
5a39af |
#
|
|
Karsten Hopp |
5a39af |
# Test 72: unknown reason
|
|
Karsten Hopp |
5a39af |
+ # Test 85: no Lua interface
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
.IFDEF WANT_GUI
|
|
Karsten Hopp |
5a39af |
SCRIPT_GUI = test16.out
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/testdir/Makefile 2012-03-28 19:58:34.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/testdir/Makefile 2012-04-05 16:21:13.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 27,33 ****
|
|
Karsten Hopp |
5a39af |
test69.out test70.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS_GUI = test16.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
--- 27,33 ----
|
|
Karsten Hopp |
5a39af |
test69.out test70.out test71.out test72.out test73.out \
|
|
Karsten Hopp |
5a39af |
test74.out test75.out test76.out test77.out test78.out \
|
|
Karsten Hopp |
5a39af |
test79.out test80.out test81.out test82.out test83.out \
|
|
Karsten Hopp |
5a39af |
! test84.out test85.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
SCRIPTS_GUI = test16.out
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
*** ../vim-7.3.490/src/version.c 2012-04-05 16:53:56.000000000 +0200
|
|
Karsten Hopp |
5a39af |
--- src/version.c 2012-04-05 16:55:27.000000000 +0200
|
|
Karsten Hopp |
5a39af |
***************
|
|
Karsten Hopp |
5a39af |
*** 716,717 ****
|
|
Karsten Hopp |
5a39af |
--- 716,719 ----
|
|
Karsten Hopp |
5a39af |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5a39af |
+ /**/
|
|
Karsten Hopp |
5a39af |
+ 491,
|
|
Karsten Hopp |
5a39af |
/**/
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
--
|
|
Karsten Hopp |
5a39af |
You had connectors? Eeee, when I were a lad we 'ad to carry the
|
|
Karsten Hopp |
5a39af |
bits between the computer and the terminal with a spoon...
|
|
Karsten Hopp |
5a39af |
|
|
Karsten Hopp |
5a39af |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5a39af |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5a39af |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5a39af |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|