annotate src/testdir/test14.in @ 15541:0e39325d5ea1 v8.1.0778

patch 8.1.0778: terminal test fails on MS-Windows commit https://github.com/vim/vim/commit/d383c92ec1d14ffd5c3802f0ffd763e91d547fa8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 19 15:27:08 2019 +0100 patch 8.1.0778: terminal test fails on MS-Windows Problem: Terminal test fails on MS-Windows. Solution: Temporarily skip the test on MS-Windows. Do run it both in terminal and GUI on other systems.
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Jan 2019 15:30:08 +0100
parents ae45d497868f
children
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 Tests for "vaBiB", end could be wrong.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Also test ":s/pat/sub/" with different ~s in sub.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 Also test for ^Vxff and ^Vo123 in Insert mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 Also test "[m", "]m", "[M" and "]M"
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
5 Also test search()
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :so small.vim
11091
ae45d497868f patch 8.0.0433: beeps when running tests
Christian Brabandt <cb@256bit.org>
parents: 5616
diff changeset
9 :set belloff=all
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 /Start cursor here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 vaBiBD:?Bug?,/Piece/-2w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 /^- Bug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :s/u/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :s/i/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :s/o/~~~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 : let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 : let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :exe "normal " . tt
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
23 :unlet tt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :set vb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 /^Piece
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 2]maA:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 j]maB:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 ]maC:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 [maD:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 k2[maE:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 3[maF:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 ]MaG:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 j2]MaH:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 ]M]MaI:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 2[MaJ:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 k[MaK:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 3[MaL:.w >>test.out
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
39 :"
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
40 /^foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
41 :let startline = line('.')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
42 :call search('foobar', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
43 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
44 j:call search('^$', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
45 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
46 :call search('^$', 'bc')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
47 :call append(line('$'), line('.') - startline)
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
48 /two
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
49 :call search('.', 'c')
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
50 :call append(line('$'), getline('.')[col('.') - 1:])
5606
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
51 :"
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
52 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
53 :s/foo/bar/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
54 :$put =@/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
55 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
56 :keeppatterns s/asdf/xyz/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
57 :$put =@/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
58 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
59 Y:$put =@0
5616
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
60 /bar /e
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
61 :$put =@0
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
62 -:keeppatterns /xyz
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
63 0dn:/^search()/,$w >>test.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 - Bug in "vPPPP" on this text (Webb):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 cmd; /* <-- Start cursor here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 Piece of Java
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 tt m1 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 t1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 } e1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 tt m2 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 t2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 } e2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 tt m3 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 if (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 t3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 } e3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 }
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
94
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
95 foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
96
5606
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
97 substitute foo asdf
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
98
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
99 one two
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
100 search()