annotate src/testdir/test83.in @ 3543:9755d151c749 v7.3.532

updated for version 7.3.532 Problem: Compiler warning from Clang. Solution: Use a different way to point inside a string. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Fri, 01 Jun 2012 13:18:53 +0200
parents ac16c62282ac
children bc269cf15ccd
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
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11
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
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 ggdG
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :call setline('.', 'Results of test83')
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20
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
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33
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
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46
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
52526aec4afb updated for version 7.3.336
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60
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