annotate src/testdir/test83.in @ 8406:5d926807c19c v7.4.1494

commit https://github.com/vim/vim/commit/119d4693e06e68d4f099aa7287e375ae3d265fd0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 5 21:21:24 2016 +0100 patch 7.4.1494 Problem: clr_history() does not work properly. Solution: Increment hisptr. Add a test. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Mar 2016 21:30:05 +0100
parents bc269cf15ccd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for tag search with !_TAG_FILE_ENCODING.
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so mbyte.vim
3235
ac16c62282ac updated for version 7.3.387
Bram Moolenaar <bram@vim.org>
parents: 3233
diff changeset
5 :set enc=utf8
3233
1cedbee50ca6 updated for version 7.3.386
Bram Moolenaar <bram@vim.org>
parents: 3131
diff changeset
6 :if !has('iconv') || iconv("\x82\x60", "cp932", "utf-8") != "\uff21"
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 : e! test.ok
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 : w! test.out
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 : qa!
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :endif
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
11 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :/^text for tags1$/,/^text for tags1$/+1w! Xtags1.txt
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :/^text for tags2$/,/^text for tags2$/+1w! Xtags2.txt
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :/^text for tags3$/,/^text for tags3$/+1w! Xtags3.txt
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :/^tags1$/+1,/^tags1-end$/-1w! Xtags1
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
16 :
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
17 ggdG:
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
18 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :call setline('.', 'Results of test83')
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
20 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :" case1:
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :new
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :set tags=Xtags1
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :let v:errmsg = ''
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :tag abcdefghijklmnopqrs
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :if v:errmsg =~ 'E426:' || getline('.') != 'abcdefghijklmnopqrs'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 : put ='case1: failed'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :else
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 : put ='case1: ok'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :endif
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
33 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :" case2:
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :new
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 :set tags=test83-tags2
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :let v:errmsg = ''
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :tag /.BC
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :if v:errmsg =~ 'E426:' || getline('.') != 'ABC'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 : put ='case2: failed'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :else
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 : put ='case2: ok'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :endif
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
46 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :" case3:
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 :new
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 :set tags=test83-tags3
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 :let v:errmsg = ''
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 :tag abc50
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 :if v:errmsg =~ 'E426:' || getline('.') != 'ABC'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 : put ='case3: failed'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 :else
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 : close
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 : put ='case3: ok'
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 :endif
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 :close
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 3235
diff changeset
60 :
3131
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 :wq! test.out
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 ENDTEST
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 text for tags1
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 abcdefghijklmnopqrs
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 text for tags2
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 ABC
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 text for tags3
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 ABC
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 tags1
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 !_TAG_FILE_ENCODING utf-8 //
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 abcdefghijklmnopqrs Xtags1.txt /abcdefghijklmnopqrs
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76 tags1-end