annotate src/testdir/test14.in @ 5298:e29f11399cce v7.4.002

updated for version 7.4.002 Problem: Pattern with two alternative look-behind matches does not match. (Amadeus Demarzi) Solution: When comparing PIMs also compare their state ID to see if they are different.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Aug 2013 13:34:25 +0200
parents 96f478b812b1
children 15960ebc2ee8
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /Start cursor here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 vaBiBD:?Bug?,/Piece/-2w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /^- Bug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :s/u/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :s/i/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :s/o/~~~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 : 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
18 :else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 : 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
20 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :exe "normal " . tt
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
22 :unlet tt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :set vb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 /^Piece
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 2]maA:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 j]maB:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 ]maC:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 [maD:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 k2[maE:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 3[maF:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 ]MaG:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 j2]MaH:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 ]M]MaI:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 2[MaJ:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 k[MaK:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 3[MaL:.w >>test.out
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
38 :"
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
39 /^foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
40 :let startline = line('.')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
41 :call search('foobar', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
42 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
43 j:call search('^$', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
44 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
45 :call search('^$', 'bc')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
46 :call append(line('$'), line('.') - startline)
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
47 /two
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
48 :call search('.', 'c')
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
49 :call append(line('$'), getline('.')[col('.') - 1:])
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
50 :/^search()/,$w >>test.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 - Bug in "vPPPP" on this text (Webb):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 cmd; /* <-- Start cursor here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 Piece of Java
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 tt m1 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 t1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 } e1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 tt m2 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 t2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 } e2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 tt m3 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 t3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 } e3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 }
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
81
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
82 foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
83
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
84
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
85 one two
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
86 search()