Mercurial > vim
annotate src/testdir/test1.in @ 4468:dde1cf311be6 v7.3.982
updated for version 7.3.982
Problem: In the new regexp engine \p does not work on multi-byte
characters.
Solution: Don't point to an integer but the characters.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 12:34:17 +0200 |
parents | e070b34fe35e |
children | 91f6a28e010d |
rev | line source |
---|---|
7 | 1 |
2 First a simple test to check if the test script works. | |
3 | |
4 If Vim was not compiled with the +eval feature, the small.vim script will be | |
5 set to copy the test.ok file to test.out, so that it looks like the test | |
6 succeeded. Otherwise an empty small.vim is written. small.vim is sourced by | |
7 tests that require the +eval feature or other features that are missing in the | |
8 small version. | |
9 | |
10 If Vim was not compiled with the +windows feature, the tiny.vim script will be | |
11 set like small.vim above. tiny.vim is sourced by tests that require the | |
12 +windows feature or other features that are missing in the tiny version. | |
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 | 16 +multi_byte feature. |
2050 | 17 Similar logic is applied to the +mzscheme feature, using mzscheme.vim. |
3452 | 18 Similar logic is applied to the +lua feature, using lua.vim. |
7 | 19 |
20 STARTTEST | |
21 :" Write a single line to test.out to check if testing works at all. | |
22 :%d | |
23 athis is a test:w! test.out | |
24 :" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test. | |
25 0D:w! small.vim | |
26 :w! tiny.vim | |
27 ae! test.ok | |
28 w! test.out | |
29 qa! | |
30 :w! mbyte.vim | |
2050 | 31 :w! mzscheme.vim |
3452 | 32 :w! lua.vim |
33 :" | |
7 | 34 :" If +multi_byte feature supported, make mbyte.vim empty. |
35 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif | |
3452 | 36 :" |
2050 | 37 :" If +mzscheme feature supported, make mzscheme.vim empty. |
38 :if has("mzscheme") | sp another | w! mzscheme.vim | q | endif | |
3452 | 39 :" |
40 :" If +lua feature supported, make lua.vim empty. | |
41 :if has("lua") | sp another | w! lua.vim | q | endif | |
42 :" | |
7 | 43 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. |
44 :" Otherwise write small.vim to skip the test. | |
45 :if 1 | q! | endif | |
46 :w! small.vim | |
47 :" If +windows feature not supported :sp will fail and tiny.vim will be | |
48 :" written to skip the test. | |
49 :sp another | |
50 :wq! tiny.vim | |
51 :qa! | |
52 ENDTEST | |
53 |