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