annotate src/testdir/test1.in @ 8987:42beb54724fa v7.4.1779

commit https://github.com/vim/vim/commit/73dfe917ba6357413aaf98a021c91add5ac6e9bc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 23 13:54:48 2016 +0200 patch 7.4.1779 Problem: Using negative index in strcharpart(). (Yegappan Lakshmanan) Solution: Assume single byte when using a negative iindex.
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Apr 2016 14:00:05 +0200
parents 91f6a28e010d
children 43b8795f1ddf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 First a simple test to check if the test script works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 If Vim was not compiled with the +eval feature, the small.vim script will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 set to copy the test.ok file to test.out, so that it looks like the test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 succeeded. Otherwise an empty small.vim is written. small.vim is sourced by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 tests that require the +eval feature or other features that are missing in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 small version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 If Vim was not compiled with the +windows feature, the tiny.vim script will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 set like small.vim above. tiny.vim is sourced by tests that require the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 +windows feature or other features that are missing in the tiny version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
2485
5edcd4ef88df Small changes to the test files. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents: 2050
diff changeset
14 If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will
5edcd4ef88df Small changes to the test files. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents: 2050
diff changeset
15 be set like small.vim above. mbyte.vim is sourced by tests that require the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 +multi_byte feature.
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
17 Similar logic is applied to the +mzscheme feature, using mzscheme.vim.
3452
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
18 Similar logic is applied to the +lua feature, using lua.vim.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 STARTTEST
5363
91f6a28e010d updated for version 7.4.033
Bram Moolenaar <bram@vim.org>
parents: 3452
diff changeset
21 :" If columns or lines are too small, create wrongtermsize.
91f6a28e010d updated for version 7.4.033
Bram Moolenaar <bram@vim.org>
parents: 3452
diff changeset
22 :" (Some tests will fail. When columns and/or lines are small)
91f6a28e010d updated for version 7.4.033
Bram Moolenaar <bram@vim.org>
parents: 3452
diff changeset
23 :if &lines < 24 || &columns < 80 | sp another | w! wrongtermsize | qa! | endif
91f6a28e010d updated for version 7.4.033
Bram Moolenaar <bram@vim.org>
parents: 3452
diff changeset
24 :"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :" Write a single line to test.out to check if testing works at all.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :%d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 athis is a test:w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 0D:w! small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :w! tiny.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 ae! test.ok
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :w! mbyte.vim
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
35 :w! mzscheme.vim
3452
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
36 :w! lua.vim
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
37 :"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :" If +multi_byte feature supported, make mbyte.vim empty.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif
3452
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
40 :"
2050
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
41 :" If +mzscheme feature supported, make mzscheme.vim empty.
afcf9db31561 updated for version 7.2.336
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
42 :if has("mzscheme") | sp another | w! mzscheme.vim | q | endif
3452
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
43 :"
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
44 :" If +lua feature supported, make lua.vim empty.
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
45 :if has("lua") | sp another | w! lua.vim | q | endif
e070b34fe35e updated for version 7.3.491
Bram Moolenaar <bram@vim.org>
parents: 2485
diff changeset
46 :"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :" Otherwise write small.vim to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 :if 1 | q! | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :w! small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :" If +windows feature not supported :sp will fail and tiny.vim will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :" written to skip the test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 :sp another
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :wq! tiny.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57