annotate src/testdir/test64.in @ 2155:32f25c7ae94b

First step in the Vim 7.3 branch. Changed version numbers.
author Bram Moolenaar <bram@zimbu.org>
date Sat, 15 May 2010 13:56:02 +0200
parents 0691866e6cc9
children ccecb03e5e8b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1357
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
1 Test for regexp patterns.
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
2
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
3 A pattern that gives the expected result produces OK, so that we know it was
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
4 actually tried.
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
5
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
6 STARTTEST
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
7 :so small.vim
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
8 :" tl is a List of Lists with:
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
9 :" regexp pattern
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
10 :" text to test the pattern on
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
11 :" expected match (optional)
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
12 :" expected submatch 1 (optional)
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
13 :" expected submatch 2 (optional)
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
14 :" etc.
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
15 :" When there is no match use only the first two items.
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
16 :let tl = []
1465
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
17 :call add(tl, ['ab', 'aab', 'ab'])
1357
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
18 :call add(tl, ['b', 'abcdef', 'b'])
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
19 :call add(tl, ['bc*', 'abccccdef', 'bcccc'])
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
20 :call add(tl, ['bc\{-}', 'abccccdef', 'b'])
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
21 :call add(tl, ['bc\{-}\(d\)', 'abccccdef', 'bccccd', 'd'])
1465
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
22 :call add(tl, ['bc*', 'abbdef', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
23 :call add(tl, ['c*', 'ccc', 'ccc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
24 :call add(tl, ['bc*', 'abdef', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
25 :call add(tl, ['c*', 'abdef', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
26 :call add(tl, ['bc\+', 'abccccdef', 'bcccc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
27 :call add(tl, ['bc\+', 'abdef']) "no match
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
28 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
29 :"operator \|
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
30 :call add(tl, ['a\|ab', 'cabd', 'a']) "alternation is ordered
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
31 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
32 :call add(tl, ['c\?', 'ccb', 'c'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
33 :call add(tl, ['bc\?', 'abd', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
34 :call add(tl, ['bc\?', 'abccd', 'bc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
35 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
36 :call add(tl, ['\va{1}', 'ab', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
37 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
38 :call add(tl, ['\va{2}', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
39 :call add(tl, ['\va{2}', 'caad', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
40 :call add(tl, ['\va{2}', 'aba'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
41 :call add(tl, ['\va{2}', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
42 :call add(tl, ['\va{2}', 'abaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
43 :call add(tl, ['\va{2}', 'aaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
44 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
45 :call add(tl, ['\vb{1}', 'abca', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
46 :call add(tl, ['\vba{2}', 'abaa', 'baa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
47 :call add(tl, ['\vba{3}', 'aabaac'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
48 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
49 :call add(tl, ['\v(ab){1}', 'ab', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
50 :call add(tl, ['\v(ab){1}', 'dabc', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
51 :call add(tl, ['\v(ab){1}', 'acb'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
52 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
53 :call add(tl, ['\v(ab){0,2}', 'acb', "", ""])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
54 :call add(tl, ['\v(ab){0,2}', 'ab', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
55 :call add(tl, ['\v(ab){1,2}', 'ab', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
56 :call add(tl, ['\v(ab){1,2}', 'ababc', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
57 :call add(tl, ['\v(ab){2,4}', 'ababcab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
58 :call add(tl, ['\v(ab){2,4}', 'abcababa', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
59 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
60 :call add(tl, ['\v(ab){2}', 'abab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
61 :call add(tl, ['\v(ab){2}', 'cdababe', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
62 :call add(tl, ['\v(ab){2}', 'abac'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
63 :call add(tl, ['\v(ab){2}', 'abacabab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
64 :call add(tl, ['\v((ab){2}){2}', 'abababab', 'abababab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
65 :call add(tl, ['\v((ab){2}){2}', 'abacabababab', 'abababab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
66 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
67 :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
68 :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
69 :call add(tl, ['\v(a{2}){1}', 'aaac', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
70 :call add(tl, ['\v(a{2}){1}', 'daaac', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
71 :call add(tl, ['\v(a{1}){2}', 'daaac', 'aa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
72 :call add(tl, ['\v(a{1}){2}', 'aaa', 'aa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
73 :call add(tl, ['\v(a{2})+', 'adaac', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
74 :call add(tl, ['\v(a{2})+', 'aa', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
75 :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
76 :call add(tl, ['\v(a{1}){2}', 'aa', 'aa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
77 :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
78 :call add(tl, ['\v(a{2}){2}', 'aaaa', 'aaaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
79 :call add(tl, ['\v(a{2}){2}', 'aaabaaaa', 'aaaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
80 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
81 :call add(tl, ['\v(a+){2}', 'dadaac', 'aa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
82 :call add(tl, ['\v(a{3}){2}', 'aaaaaaa', 'aaaaaa', 'aaa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
83 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
84 :call add(tl, ['\v(a{1,2}){2}', 'daaac', 'aaa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
85 :call add(tl, ['\v(a{1,3}){2}', 'daaaac', 'aaaa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
86 :call add(tl, ['\v(a{1,3}){2}', 'daaaaac', 'aaaaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
87 :call add(tl, ['\v(a{1,3}){3}', 'daac'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
88 :call add(tl, ['\v(a{1,2}){2}', 'dac'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
89 :call add(tl, ['\v(a+)+', 'daac', 'aa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
90 :call add(tl, ['\v(a+)+', 'aaa', 'aaa', 'aaa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
91 :call add(tl, ['\v(a+){1,2}', 'aaa', 'aaa', 'aaa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
92 :call add(tl, ['\v(a+)(a+)', 'aaa', 'aaa', 'aa', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
93 :call add(tl, ['\v(a{3})+', 'daaaac', 'aaa', 'aaa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
94 :call add(tl, ['\v(a|b|c)+', 'aacb', 'aacb', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
95 :call add(tl, ['\v(a|b|c){2}', 'abcb', 'ab', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
96 :call add(tl, ['\v(abc){2}', 'abcabd', ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
97 :call add(tl, ['\v(abc){2}', 'abdabcabc','abcabc', 'abc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
98 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
99 :call add(tl, ['a*', 'cc', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
100 :call add(tl, ['\v(a*)+', 'cc', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
101 :call add(tl, ['\v((ab)+)+', 'ab', 'ab', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
102 :call add(tl, ['\v(((ab)+)+)+', 'ab', 'ab', 'ab', 'ab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
103 :call add(tl, ['\v(((ab)+)+)+', 'dababc', 'abab', 'abab', 'abab', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
104 :call add(tl, ['\v(a{0,2})+', 'cc', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
105 :call add(tl, ['\v(a*)+', '', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
106 :call add(tl, ['\v((a*)+)+', '', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
107 :call add(tl, ['\v((ab)*)+', '', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
108 :call add(tl, ['\va{1,3}', 'aab', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
109 :call add(tl, ['\va{2,3}', 'abaa', 'aa'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
110 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
111 :call add(tl, ['\v((ab)+|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
112 :call add(tl, ['\v(a{2})|(b{3})', 'bbabbbb', 'bbb', '', 'bbb'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
113 :call add(tl, ['\va{2}|b{2}', 'abab'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
114 :call add(tl, ['\v(a)+|(c)+', 'bbacbaacbbb', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
115 :call add(tl, ['\vab{2,3}c', 'aabbccccccccccccc', 'abbc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
116 :call add(tl, ['\vab{2,3}c', 'aabbbccccccccccccc', 'abbbc'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
117 :call add(tl, ['\vab{2,3}cd{2,3}e', 'aabbbcddee', 'abbbcdde'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
118 :call add(tl, ['\va(bc){2}d', 'aabcbfbc' ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
119 :call add(tl, ['\va*a{2}', 'a', ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
120 :call add(tl, ['\va*a{2}', 'aa', 'aa' ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
121 :call add(tl, ['\va*a{2}', 'aaa', 'aaa' ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
122 :call add(tl, ['\va*a{2}', 'bbbabcc', ])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
123 :call add(tl, ['\va*b*|a*c*', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
124 :call add(tl, ['\va{1}b{1}|a{1}b{1}', ''])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
125 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
126 :"submatches
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
127 :call add(tl, ['\v(a)', 'ab', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
128 :call add(tl, ['\v(a)(b)', 'ab', 'ab', 'a', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
129 :call add(tl, ['\v(ab)(b)(c)', 'abbc', 'abbc', 'ab', 'b', 'c'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
130 :call add(tl, ['\v((a)(b))', 'ab', 'ab', 'ab', 'a', 'b'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
131 :call add(tl, ['\v(a)|(b)', 'ab', 'a', 'a'])
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
132 :"
0691866e6cc9 updated for version 7.1-180
vimboss
parents: 1405
diff changeset
133 :call add(tl, ['\v(a*)+', 'aaaa', 'aaaa', ''])
1357
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
134 :call add(tl, ['x', 'abcdef'])
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
135 :"
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
136 :for t in tl
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
137 : let l = matchlist(t[1], t[0])
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
138 :" check the match itself
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
139 : if len(l) == 0 && len(t) > 2
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
140 : $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", did not match, expected: \"' . t[2] . '\"'
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
141 : elseif len(l) > 0 && len(t) == 2
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
142 : $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected no match'
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
143 : elseif len(t) > 2 && l[0] != t[2]
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
144 : $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected: \"' . t[2] . '\"'
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
145 : else
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
146 : $put ='OK'
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
147 : endif
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
148 : if len(l) > 0
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
149 :" check all the nine submatches
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
150 : for i in range(1, 9)
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
151 : if len(t) <= i + 2
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
152 : let e = ''
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
153 : else
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
154 : let e = t[i + 2]
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
155 : endif
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
156 : if l[i] != e
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
157 : $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
158 : endif
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
159 : endfor
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 1357
diff changeset
160 : unlet i
1357
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
161 : endif
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
162 :endfor
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 1357
diff changeset
163 :unlet t tl e l
1357
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
164 :/^Results/,$wq! test.out
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
165 ENDTEST
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
166
4dd75cfd946f updated for version 7.1-071
vimboss
parents:
diff changeset
167 Results of test64: