Mercurial > vim
annotate src/testdir/test86.ok @ 4513:cadb57fbb781 v7.3.1004
updated for version 7.3.1004
Problem: No error when option could not be set.
Solution: Report an error. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 22:38:18 +0200 |
parents | ce94a870b59b |
children | fa39483a1363 |
rev | line source |
---|---|
3618 | 1 start: |
2 [1, 'as''d', [1, 2, function('strlen'), {'a': 1}]] | |
3 [1, 2, function('strlen'), {'a': 1}] | |
4 Vim(put):E684: | |
5 [0, 'as''d', [1, 2, function('strlen'), {'a': 1}]] | |
6 [0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]] | |
7 ['-1', '1', 'b'] | |
8 '-1' : {'a': 1} | |
9 '1' : 'asd' | |
10 'b' : [1, 2, function('strlen')] | |
11 [0, function('strlen')] | |
12 [3] | |
13 {'1': 'asd', 'b': [1, 2, function('strlen')]} | |
14 [0, 1, 2, 3] | |
15 [0, 1, 2, 3] | |
16 [0, 1, 3] | |
17 [0, 1] | |
18 [0, 1] | |
19 [0, 1] | |
20 [0, 1, 2, 3] | |
21 [0, 1, 2, 3] | |
22 [0, 2, 3] | |
23 [2, 3] | |
24 [2, 3] | |
25 [2, 3] | |
26 ['a', 0, 1, 2, 3] | |
27 [0, 'b', 2, 3] | |
28 [0, 1, 'c'] | |
29 [0, 1, 2, 3, 'd'] | |
30 [0, 1, 2, 'e', 3] | |
31 ['f', 2, 3] | |
32 [0, 1, 'g', 2, 3] | |
33 ['h'] | |
34 [0, 1, 2, 3] | |
35 [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd'] | |
36 [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}] | |
37 [function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New'] | |
38 Vim(python):E725: | |
39 Vim(python):E117: | |
40 [0.0, 0.0] | |
4315 | 41 KeyError |
3802 | 42 TypeError |
43 TypeError | |
44 ValueError | |
45 TypeError | |
46 TypeError | |
3828 | 47 d : locked:0;scope:0 |
48 dl : locked:1;scope:0 | |
49 v: : locked:2;scope:1 | |
50 g: : locked:0;scope:2 | |
51 d:{'abc': 1} | |
52 dl:{'def': 1} | |
53 l : locked:0 | |
54 ll : locked:1 | |
55 l:[0] | |
56 ll:[1] | |
3618 | 57 [0, 1, 2] |
58 ['a', 'b'] | |
59 ['c', 1] | |
60 ['d', ['e']] | |
61 0.0 | |
3802 | 62 "\0": Vim(let):E859: |
63 {"\0": 1}: Vim(let):E859: | |
4149 | 64 undefined_name: Vim(let):Trace |
3802 | 65 vim: Vim(let):E859: |
4109 | 66 [1] |
67 [1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1] | |
4260 | 68 [0, 1, 2, 3] |
69 [2, 3, 4, 5] | |
70 [0, 1] | |
71 [4, 5] | |
72 [2, 3] | |
73 [] | |
74 [2, 3] | |
75 [] | |
76 [0, 1, 2, 3, 4, 5] | |
77 [0, 1, 2, 3, 4, 5] | |
78 [0, 1, 2, 3, 4, 5] | |
4323 | 79 Abc |
80 bac | |
81 def | |
82 bar | |
4413 | 83 jkl |
4350 | 84 >>> paste |
85 p/gopts1: False | |
86 p/wopts1! KeyError | |
87 inv: 2! KeyError | |
88 wopts1! KeyError | |
89 wopts2! KeyError | |
90 wopts3! KeyError | |
91 p/bopts1! KeyError | |
92 inv: 2! KeyError | |
93 bopts1! KeyError | |
94 bopts2! KeyError | |
95 bopts3! KeyError | |
96 G: 1 | |
97 W: 1:1 2:1 3:1 4:1 | |
98 B: 1:1 2:1 3:1 4:1 | |
99 del wopts3! KeyError | |
100 del bopts3! KeyError | |
101 G: 1 | |
102 W: 1:1 2:1 3:1 4:1 | |
103 B: 1:1 2:1 3:1 4:1 | |
104 >>> previewheight | |
105 p/gopts1: 12 | |
4405 | 106 inv: 'a'! TypeError |
4350 | 107 p/wopts1! KeyError |
108 inv: 'a'! KeyError | |
109 wopts1! KeyError | |
110 wopts2! KeyError | |
111 wopts3! KeyError | |
112 p/bopts1! KeyError | |
113 inv: 'a'! KeyError | |
114 bopts1! KeyError | |
115 bopts2! KeyError | |
116 bopts3! KeyError | |
117 G: 5 | |
118 W: 1:5 2:5 3:5 4:5 | |
119 B: 1:5 2:5 3:5 4:5 | |
120 del wopts3! KeyError | |
121 del bopts3! KeyError | |
122 G: 5 | |
123 W: 1:5 2:5 3:5 4:5 | |
124 B: 1:5 2:5 3:5 4:5 | |
125 >>> operatorfunc | |
126 p/gopts1: '' | |
4405 | 127 inv: 2! TypeError |
4350 | 128 p/wopts1! KeyError |
129 inv: 2! KeyError | |
130 wopts1! KeyError | |
131 wopts2! KeyError | |
132 wopts3! KeyError | |
133 p/bopts1! KeyError | |
134 inv: 2! KeyError | |
135 bopts1! KeyError | |
136 bopts2! KeyError | |
137 bopts3! KeyError | |
138 G: 'A' | |
139 W: 1:'A' 2:'A' 3:'A' 4:'A' | |
140 B: 1:'A' 2:'A' 3:'A' 4:'A' | |
141 del wopts3! KeyError | |
142 del bopts3! KeyError | |
143 G: 'A' | |
144 W: 1:'A' 2:'A' 3:'A' 4:'A' | |
145 B: 1:'A' 2:'A' 3:'A' 4:'A' | |
146 >>> number | |
147 p/gopts1! KeyError | |
148 inv: 0! KeyError | |
149 gopts1! KeyError | |
150 p/wopts1: False | |
151 p/bopts1! KeyError | |
152 inv: 0! KeyError | |
153 bopts1! KeyError | |
154 bopts2! KeyError | |
155 bopts3! KeyError | |
156 G: 0 | |
157 W: 1:1 2:1 3:0 4:0 | |
158 B: 1:1 2:1 3:0 4:0 | |
159 del wopts3! ValueError | |
160 del bopts3! KeyError | |
161 G: 0 | |
162 W: 1:1 2:1 3:0 4:0 | |
163 B: 1:1 2:1 3:0 4:0 | |
164 >>> numberwidth | |
165 p/gopts1! KeyError | |
166 inv: -100! KeyError | |
167 gopts1! KeyError | |
168 p/wopts1: 8 | |
4513
cadb57fbb781
updated for version 7.3.1004
Bram Moolenaar <bram@vim.org>
parents:
4511
diff
changeset
|
169 inv: -100! error |
4350 | 170 p/bopts1! KeyError |
171 inv: -100! KeyError | |
172 bopts1! KeyError | |
173 bopts2! KeyError | |
174 bopts3! KeyError | |
175 G: 8 | |
176 W: 1:3 2:5 3:2 4:8 | |
177 B: 1:3 2:5 3:2 4:8 | |
178 del wopts3! ValueError | |
179 del bopts3! KeyError | |
180 G: 8 | |
181 W: 1:3 2:5 3:2 4:8 | |
182 B: 1:3 2:5 3:2 4:8 | |
183 >>> colorcolumn | |
184 p/gopts1! KeyError | |
185 inv: 'abc'! KeyError | |
186 gopts1! KeyError | |
187 p/wopts1: '' | |
4513
cadb57fbb781
updated for version 7.3.1004
Bram Moolenaar <bram@vim.org>
parents:
4511
diff
changeset
|
188 inv: 'abc'! error |
4350 | 189 p/bopts1! KeyError |
190 inv: 'abc'! KeyError | |
191 bopts1! KeyError | |
192 bopts2! KeyError | |
193 bopts3! KeyError | |
194 G: '' | |
195 W: 1:'+2' 2:'+3' 3:'+1' 4:'' | |
196 B: 1:'+2' 2:'+3' 3:'+1' 4:'' | |
197 del wopts3! ValueError | |
198 del bopts3! KeyError | |
199 G: '' | |
200 W: 1:'+2' 2:'+3' 3:'+1' 4:'' | |
201 B: 1:'+2' 2:'+3' 3:'+1' 4:'' | |
202 >>> statusline | |
203 p/gopts1: '' | |
4405 | 204 inv: 0! TypeError |
4350 | 205 p/wopts1: None |
4405 | 206 inv: 0! TypeError |
4350 | 207 p/bopts1! KeyError |
208 inv: 0! KeyError | |
209 bopts1! KeyError | |
210 bopts2! KeyError | |
211 bopts3! KeyError | |
212 G: '1' | |
213 W: 1:'2' 2:'4' 3:'1' 4:'1' | |
214 B: 1:'2' 2:'4' 3:'1' 4:'1' | |
215 del bopts3! KeyError | |
216 G: '1' | |
217 W: 1:'2' 2:'1' 3:'1' 4:'1' | |
218 B: 1:'2' 2:'1' 3:'1' 4:'1' | |
219 >>> autoindent | |
220 p/gopts1! KeyError | |
221 inv: 2! KeyError | |
222 gopts1! KeyError | |
223 p/wopts1! KeyError | |
224 inv: 2! KeyError | |
225 wopts1! KeyError | |
226 wopts2! KeyError | |
227 wopts3! KeyError | |
228 p/bopts1: False | |
229 G: 0 | |
4393 | 230 W: 1:0 2:1 3:0 4:1 |
231 B: 1:0 2:1 3:0 4:1 | |
4350 | 232 del wopts3! KeyError |
233 del bopts3! ValueError | |
234 G: 0 | |
4393 | 235 W: 1:0 2:1 3:0 4:1 |
236 B: 1:0 2:1 3:0 4:1 | |
4427 | 237 >>> shiftwidth |
4350 | 238 p/gopts1! KeyError |
239 inv: 3! KeyError | |
240 gopts1! KeyError | |
241 p/wopts1! KeyError | |
242 inv: 3! KeyError | |
243 wopts1! KeyError | |
244 wopts2! KeyError | |
245 wopts3! KeyError | |
4427 | 246 p/bopts1: 8 |
247 G: 8 | |
248 W: 1:0 2:2 3:8 4:1 | |
249 B: 1:0 2:2 3:8 4:1 | |
4350 | 250 del wopts3! KeyError |
251 del bopts3! ValueError | |
4427 | 252 G: 8 |
253 W: 1:0 2:2 3:8 4:1 | |
254 B: 1:0 2:2 3:8 4:1 | |
4350 | 255 >>> omnifunc |
256 p/gopts1! KeyError | |
257 inv: 1! KeyError | |
258 gopts1! KeyError | |
259 p/wopts1! KeyError | |
260 inv: 1! KeyError | |
261 wopts1! KeyError | |
262 wopts2! KeyError | |
263 wopts3! KeyError | |
264 p/bopts1: '' | |
4405 | 265 inv: 1! TypeError |
4350 | 266 G: '' |
4393 | 267 W: 1:'A' 2:'B' 3:'' 4:'C' |
268 B: 1:'A' 2:'B' 3:'' 4:'C' | |
4350 | 269 del wopts3! KeyError |
270 del bopts3! ValueError | |
271 G: '' | |
4393 | 272 W: 1:'A' 2:'B' 3:'' 4:'C' |
273 B: 1:'A' 2:'B' 3:'' 4:'C' | |
4350 | 274 >>> preserveindent |
275 p/gopts1! KeyError | |
276 inv: 2! KeyError | |
277 gopts1! KeyError | |
278 p/wopts1! KeyError | |
279 inv: 2! KeyError | |
280 wopts1! KeyError | |
281 wopts2! KeyError | |
282 wopts3! KeyError | |
283 p/bopts1: False | |
284 G: 0 | |
4393 | 285 W: 1:0 2:1 3:0 4:1 |
286 B: 1:0 2:1 3:0 4:1 | |
4350 | 287 del wopts3! KeyError |
288 del bopts3! ValueError | |
289 G: 0 | |
4393 | 290 W: 1:0 2:1 3:0 4:1 |
291 B: 1:0 2:1 3:0 4:1 | |
4350 | 292 >>> path |
293 p/gopts1: '.,/usr/include,,' | |
4405 | 294 inv: 0! TypeError |
4350 | 295 p/wopts1! KeyError |
296 inv: 0! KeyError | |
297 wopts1! KeyError | |
298 wopts2! KeyError | |
299 wopts3! KeyError | |
300 p/bopts1: None | |
4405 | 301 inv: 0! TypeError |
4350 | 302 G: '.,,' |
4393 | 303 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.' |
304 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.' | |
4350 | 305 del wopts3! KeyError |
306 G: '.,,' | |
4393 | 307 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' |
308 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' | |
4389 | 309 First line |
310 First line | |
311 def | |
312 First line | |
313 Second line | |
314 Third line | |
315 (7, 2) | |
316 <buffer test86.in><buffer > | |
317 baz | |
318 bar | |
319 Second line | |
320 Third line | |
321 foo | |
4397 | 322 i:<buffer test86.in> |
323 i2:<buffer test86.in> | |
324 i:<buffer a> | |
325 i3:<buffer test86.in> | |
326 1:<buffer test86.in>=<buffer test86.in> | |
327 6:<buffer a>=<buffer a> | |
328 7:<buffer b>=<buffer b> | |
329 8:<buffer c>=<buffer c> | |
330 4 | |
331 i4:<buffer test86.in> | |
332 i4:<buffer test86.in> | |
333 StopIteration | |
4413 | 334 Number of tabs: 4 |
335 Current tab pages: | |
336 <tabpage 0>(1): 1 windows, current is <window object (unknown)> | |
337 Windows: | |
4511
ce94a870b59b
updated for version 7.3.1003
Bram Moolenaar <bram@vim.org>
parents:
4498
diff
changeset
|
338 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (27, 0) |
4413 | 339 <tabpage 1>(2): 1 windows, current is <window object (unknown)> |
340 Windows: | |
4431 | 341 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0) |
4413 | 342 <tabpage 2>(3): 2 windows, current is <window object (unknown)> |
343 Windows: | |
4431 | 344 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0) |
345 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0) | |
4413 | 346 <tabpage 3>(4): 4 windows, current is <window 0> |
347 Windows: | |
348 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0) | |
349 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0) | |
350 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0) | |
351 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0) | |
352 Number of windows in current tab page: 4 | |
353 Current tab page: <tabpage 3> | |
354 Current window: <window 0>: <window 0> is <window 0> | |
355 Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2> | |
356 ValueError at assigning foreign tab window | |
357 Type error at assigning None to vim.current.window | |
358 Type error at assigning None to vim.current.tabpage | |
359 Type error at assigning None to vim.current.buffer | |
360 Current tab page: <tabpage 2> | |
361 Current window: <window 0> | |
362 Current buffer: <buffer test86.in> | |
363 Current line: 'Type error at assigning None to vim.current.buffer' | |
4496 | 364 vim.vars:Dictionary:True |
365 vim.options:Options:True | |
366 vim.bindeval("{}"):Dictionary:True | |
367 vim.bindeval("[]"):List:True | |
368 vim.bindeval("function('tr')"):Function:True | |
369 vim.current.buffer:Buffer:True | |
370 vim.current.range:Range:True | |
371 vim.current.window:Window:True | |
372 vim.current.tabpage:TabPage:True | |
4498 | 373 (<class 'vim.error'>, error('abc',)) |
374 (<class 'vim.error'>, error('def',)) | |
375 (<class 'vim.error'>, error('ghi',)) | |
376 (<class 'vim.error'>, error('Vim(echoerr):jkl',)) | |
377 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) | |
378 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) |