comparison src/testdir/test1.in @ 3452:e070b34fe35e v7.3.491

updated for version 7.3.491 Problem: No tests for Lua. Solution: Add some simple tests for Lua. (Luis Carvalho)
author Bram Moolenaar <bram@vim.org>
date Thu, 05 Apr 2012 16:56:52 +0200
parents 5edcd4ef88df
children 91f6a28e010d
comparison
equal deleted inserted replaced
3451:d792efa5aea7 3452:e070b34fe35e
13 13
14 If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will 14 If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will
15 be set like small.vim above. mbyte.vim is sourced by tests that require the 15 be set like small.vim above. mbyte.vim is sourced by tests that require the
16 +multi_byte feature. 16 +multi_byte feature.
17 Similar logic is applied to the +mzscheme feature, using mzscheme.vim. 17 Similar logic is applied to the +mzscheme feature, using mzscheme.vim.
18 Similar logic is applied to the +lua feature, using lua.vim.
18 19
19 STARTTEST 20 STARTTEST
20 :" Write a single line to test.out to check if testing works at all. 21 :" Write a single line to test.out to check if testing works at all.
21 :%d 22 :%d
22 athis is a test:w! test.out 23 athis is a test:w! test.out
26 ae! test.ok 27 ae! test.ok
27 w! test.out 28 w! test.out
28 qa! 29 qa!
29 :w! mbyte.vim 30 :w! mbyte.vim
30 :w! mzscheme.vim 31 :w! mzscheme.vim
32 :w! lua.vim
33 :"
31 :" If +multi_byte feature supported, make mbyte.vim empty. 34 :" If +multi_byte feature supported, make mbyte.vim empty.
32 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif 35 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif
36 :"
33 :" If +mzscheme feature supported, make mzscheme.vim empty. 37 :" If +mzscheme feature supported, make mzscheme.vim empty.
34 :if has("mzscheme") | sp another | w! mzscheme.vim | q | endif 38 :if has("mzscheme") | sp another | w! mzscheme.vim | q | endif
39 :"
40 :" If +lua feature supported, make lua.vim empty.
41 :if has("lua") | sp another | w! lua.vim | q | endif
42 :"
35 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. 43 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty.
36 :" Otherwise write small.vim to skip the test. 44 :" Otherwise write small.vim to skip the test.
37 :if 1 | q! | endif 45 :if 1 | q! | endif
38 :w! small.vim 46 :w! small.vim
39 :" If +windows feature not supported :sp will fail and tiny.vim will be 47 :" If +windows feature not supported :sp will fail and tiny.vim will be