blob: 5cb0ac57405c9e94ce273114ff08320a29ac18a7 [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020071
8['-1', '0', '1', 'b', 'f']
9['asd', -1L, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >]
10[('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('b', <vim.list object at >), ('f', <vim.Function '1'>)]
Bram Moolenaardb913952012-06-29 12:54:53 +020011'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020012'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020013'1' : 'asd'
14'b' : [1, 2, function('strlen')]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020015'f' : function('1')
Bram Moolenaardb913952012-06-29 12:54:53 +020016[0, function('strlen')]
17[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020018[1, 2, function('strlen')]
19[1, 2, function('strlen')]
201
21'asd'
222
23True
24False
25True
26False
27['0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029('0', -1L)
Bram Moolenaara9922d62013-05-30 13:01:18 +020030None
31[]
Bram Moolenaardb913952012-06-29 12:54:53 +020032[0, 1, 2, 3]
33[0, 1, 2, 3]
34[0, 1, 3]
35[0, 1]
36[0, 1]
37[0, 1]
38[0, 1, 2, 3]
39[0, 1, 2, 3]
40[0, 2, 3]
41[2, 3]
42[2, 3]
43[2, 3]
Bram Moolenaar063a46b2014-01-14 16:36:51 +010044[1, 3]
45[0, 2]
46[0, 1, 2, 3]
Bram Moolenaardb913952012-06-29 12:54:53 +020047['a', 0, 1, 2, 3]
48[0, 'b', 2, 3]
49[0, 1, 'c']
50[0, 1, 2, 3, 'd']
51[0, 1, 2, 'e', 3]
52['f', 2, 3]
53[0, 1, 'g', 2, 3]
54['h']
Bram Moolenaar063a46b2014-01-14 16:36:51 +010055[0, 1, 10, 3, 20, 5, 6, 7]
56[0, 1, 2, 3, 20, 5, 10, 7]
57[0, 1, 2, 3, 4, 5, 6, 7]
58[0, 1, 2, 3, 4, 5, 6, 7]
59[0, 1, 2, 3, 4, 5, 6, 7]
Bram Moolenaardb913952012-06-29 12:54:53 +020060[0, 1, 2, 3]
61[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
62[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
63[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
Bram Moolenaar9fee7d42013-11-28 17:04:43 +010064l[1](1, 2, 3):error:('Vim:E725: Calling dict function without Dictionary: DictNew',)
65f(1, 2, 3):error:('Vim:E117: Unknown function: New',)
Bram Moolenaardb913952012-06-29 12:54:53 +020066[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020067KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020068TypeError
69TypeError
70ValueError
71TypeError
72TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020073KeyError
74KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020075d : locked:0;scope:0
76dl : locked:1;scope:0
77v: : locked:2;scope:1
78g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020079d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020080dl:{'def': 1}
81l : locked:0
82ll : locked:1
83l:[0]
84ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020085[0, 1, 2]
86['a', 'b']
87['c', 1]
88['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200890.0
Bram Moolenaarc11073c2012-09-05 19:17:42 +020090"\0": Vim(let):E859:
91{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010092undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +020093vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010094[1]
95[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar24b11fb2013-04-05 19:32:36 +020096[0, 1, 2, 3]
97[2, 3, 4, 5]
98[0, 1]
99[4, 5]
100[2, 3]
101[]
102[2, 3]
103[]
104[0, 1, 2, 3, 4, 5]
105[0, 1, 2, 3, 4, 5]
106[0, 1, 2, 3, 4, 5]
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100107[4, 3]
108[0, 2, 4]
109[]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +0200110Abc
111bac
112def
113bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200114jkl
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100115wopts iters equal: 1
116bopts iters equal: 1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200117>>> paste
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100118 g/w/b:1/0/0
119 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200120 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200121 p/wopts1! KeyError
122 inv: 2! KeyError
123 wopts1! KeyError
124 wopts2! KeyError
125 wopts3! KeyError
126 p/bopts1! KeyError
127 inv: 2! KeyError
128 bopts1! KeyError
129 bopts2! KeyError
130 bopts3! KeyError
131 G: 1
132 W: 1:1 2:1 3:1 4:1
133 B: 1:1 2:1 3:1 4:1
134 del wopts3! KeyError
135 del bopts3! KeyError
136 G: 1
137 W: 1:1 2:1 3:1 4:1
138 B: 1:1 2:1 3:1 4:1
139>>> previewheight
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100140 g/w/b:1/0/0
141 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200142 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200143 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200144 p/wopts1! KeyError
145 inv: 'a'! KeyError
146 wopts1! KeyError
147 wopts2! KeyError
148 wopts3! KeyError
149 p/bopts1! KeyError
150 inv: 'a'! KeyError
151 bopts1! KeyError
152 bopts2! KeyError
153 bopts3! KeyError
154 G: 5
155 W: 1:5 2:5 3:5 4:5
156 B: 1:5 2:5 3:5 4:5
157 del wopts3! KeyError
158 del bopts3! KeyError
159 G: 5
160 W: 1:5 2:5 3:5 4:5
161 B: 1:5 2:5 3:5 4:5
162>>> operatorfunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100163 g/w/b:1/0/0
164 g/w/b (in):1/0/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200165 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200166 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200167 p/wopts1! KeyError
168 inv: 2! KeyError
169 wopts1! KeyError
170 wopts2! KeyError
171 wopts3! KeyError
172 p/bopts1! KeyError
173 inv: 2! KeyError
174 bopts1! KeyError
175 bopts2! KeyError
176 bopts3! KeyError
177 G: 'A'
178 W: 1:'A' 2:'A' 3:'A' 4:'A'
179 B: 1:'A' 2:'A' 3:'A' 4:'A'
180 del wopts3! KeyError
181 del bopts3! KeyError
182 G: 'A'
183 W: 1:'A' 2:'A' 3:'A' 4:'A'
184 B: 1:'A' 2:'A' 3:'A' 4:'A'
185>>> number
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100186 g/w/b:0/1/0
187 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200188 p/gopts1! KeyError
189 inv: 0! KeyError
190 gopts1! KeyError
191 p/wopts1: False
192 p/bopts1! KeyError
193 inv: 0! KeyError
194 bopts1! KeyError
195 bopts2! KeyError
196 bopts3! KeyError
197 G: 0
198 W: 1:1 2:1 3:0 4:0
199 B: 1:1 2:1 3:0 4:0
200 del wopts3! ValueError
201 del bopts3! KeyError
202 G: 0
203 W: 1:1 2:1 3:0 4:0
204 B: 1:1 2:1 3:0 4:0
205>>> numberwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100206 g/w/b:0/1/0
207 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200208 p/gopts1! KeyError
209 inv: -100! KeyError
210 gopts1! KeyError
211 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200212 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200213 p/bopts1! KeyError
214 inv: -100! KeyError
215 bopts1! KeyError
216 bopts2! KeyError
217 bopts3! KeyError
218 G: 8
219 W: 1:3 2:5 3:2 4:8
220 B: 1:3 2:5 3:2 4:8
221 del wopts3! ValueError
222 del bopts3! KeyError
223 G: 8
224 W: 1:3 2:5 3:2 4:8
225 B: 1:3 2:5 3:2 4:8
226>>> colorcolumn
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100227 g/w/b:0/1/0
228 g/w/b (in):0/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200229 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200230 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200231 gopts1! KeyError
232 p/wopts1: ''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200233 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200234 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200235 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 bopts1! KeyError
237 bopts2! KeyError
238 bopts3! KeyError
239 G: ''
240 W: 1:'+2' 2:'+3' 3:'+1' 4:''
241 B: 1:'+2' 2:'+3' 3:'+1' 4:''
242 del wopts3! ValueError
243 del bopts3! KeyError
244 G: ''
245 W: 1:'+2' 2:'+3' 3:'+1' 4:''
246 B: 1:'+2' 2:'+3' 3:'+1' 4:''
247>>> statusline
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100248 g/w/b:1/1/0
249 g/w/b (in):1/1/0
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200250 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200251 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200253 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200254 p/bopts1! KeyError
255 inv: 0! KeyError
256 bopts1! KeyError
257 bopts2! KeyError
258 bopts3! KeyError
259 G: '1'
260 W: 1:'2' 2:'4' 3:'1' 4:'1'
261 B: 1:'2' 2:'4' 3:'1' 4:'1'
262 del bopts3! KeyError
263 G: '1'
264 W: 1:'2' 2:'1' 3:'1' 4:'1'
265 B: 1:'2' 2:'1' 3:'1' 4:'1'
266>>> autoindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100267 g/w/b:0/0/1
268 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200269 p/gopts1! KeyError
270 inv: 2! KeyError
271 gopts1! KeyError
272 p/wopts1! KeyError
273 inv: 2! KeyError
274 wopts1! KeyError
275 wopts2! KeyError
276 wopts3! KeyError
277 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200278 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200279 W: 1:0 2:1 3:0 4:1
280 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281 del wopts3! KeyError
282 del bopts3! ValueError
283 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200284 W: 1:0 2:1 3:0 4:1
285 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200286>>> shiftwidth
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100287 g/w/b:0/0/1
288 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 p/gopts1! KeyError
290 inv: 3! KeyError
291 gopts1! KeyError
292 p/wopts1! KeyError
293 inv: 3! KeyError
294 wopts1! KeyError
295 wopts2! KeyError
296 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200297 p/bopts1: 8
298 G: 8
299 W: 1:0 2:2 3:8 4:1
300 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200301 del wopts3! KeyError
302 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200303 G: 8
304 W: 1:0 2:2 3:8 4:1
305 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200306>>> omnifunc
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100307 g/w/b:0/0/1
308 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200309 p/gopts1! KeyError
310 inv: 1! KeyError
311 gopts1! KeyError
312 p/wopts1! KeyError
313 inv: 1! KeyError
314 wopts1! KeyError
315 wopts2! KeyError
316 wopts3! KeyError
317 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200318 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200319 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200320 W: 1:'A' 2:'B' 3:'' 4:'C'
321 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 del wopts3! KeyError
323 del bopts3! ValueError
324 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200325 W: 1:'A' 2:'B' 3:'' 4:'C'
326 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200327>>> preserveindent
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100328 g/w/b:0/0/1
329 g/w/b (in):0/0/1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200330 p/gopts1! KeyError
331 inv: 2! KeyError
332 gopts1! KeyError
333 p/wopts1! KeyError
334 inv: 2! KeyError
335 wopts1! KeyError
336 wopts2! KeyError
337 wopts3! KeyError
338 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200339 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200340 W: 1:0 2:1 3:0 4:1
341 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200342 del wopts3! KeyError
343 del bopts3! ValueError
344 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200345 W: 1:0 2:1 3:0 4:1
346 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200347>>> path
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100348 g/w/b:1/0/1
349 g/w/b (in):1/0/1
Bram Moolenaar04188112013-06-01 20:32:12 +0200350 p/gopts1: '.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200351 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200352 p/wopts1! KeyError
353 inv: 0! KeyError
354 wopts1! KeyError
355 wopts2! KeyError
356 wopts3! KeyError
357 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200358 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200359 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200360 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
361 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200362 del wopts3! KeyError
363 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200364 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
365 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200366First line
367First line
368def
369First line
370Second line
371Third line
372(7, 2)
373<buffer test86.in><buffer >
374baz
375bar
376Second line
377Third line
378foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003791:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003801:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200381testdir/foo
3825:BufFilePre:5
3835:BufFilePost:5
384testdir/bar
3851:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003861:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200387testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200388valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200389i:<buffer test86.in>
390i2:<buffer test86.in>
391i:<buffer a>
392i3:<buffer test86.in>
3931:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003948:<buffer a>=<buffer a>
3959:<buffer b>=<buffer b>
39610:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003974
398i4:<buffer test86.in>
399i4:<buffer test86.in>
400StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200401Number of tabs: 4
402Current tab pages:
403 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
404 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200405 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200406 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
407 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200408 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200409 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
410 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200411 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
412 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200413 <tabpage 3>(4): 4 windows, current is <window 0>
414 Windows:
415 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
416 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
417 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
418 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
419Number of windows in current tab page: 4
420Current tab page: <tabpage 3>
421Current window: <window 0>: <window 0> is <window 0>
422Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
423ValueError at assigning foreign tab window
424Type error at assigning None to vim.current.window
425Type error at assigning None to vim.current.tabpage
426Type error at assigning None to vim.current.buffer
427Current tab page: <tabpage 2>
428Current window: <window 0>
429Current buffer: <buffer test86.in>
430Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200431w.valid: [True, False]
432t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200433vim.vars:Dictionary:True
434vim.options:Options:True
435vim.bindeval("{}"):Dictionary:True
436vim.bindeval("[]"):List:True
437vim.bindeval("function('tr')"):Function:True
438vim.current.buffer:Buffer:True
439vim.current.range:Range:True
440vim.current.window:Window:True
441vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200442current:__dir__,__members__,buffer,line,range,tabpage,window
443buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
444window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
445tabpage:__dir__,__members__,number,valid,vars,window,windows
446range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200447dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200448list:__dir__,__members__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200449function:__dir__,__members__,softspace
Bram Moolenaard4247472015-11-02 13:28:59 +0100450output:__dir__,__members__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200451{}
452{'a': 1}
453{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200454[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200455['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200456function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200457'
458abcdef
459line :
460abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200461abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200462line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200463abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200464['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200465['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200466['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200467[2, 2]
468[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004691
4701
471function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200472testdir
473test86.in
474src
475testdir/test86.in
476testdir
477test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200478> Output
479>> OutputSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200480del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200481>>> Testing NumberToLong using sys.stdout.softspace = %s
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200482sys.stdout.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200483sys.stdout.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
484sys.stdout.softspace = -1:ValueError:('number must be greater or equal to zero',)
485<<< Finished
486>>> Testing NumberToLong using sys.stderr.softspace = %s
487sys.stderr.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
488sys.stderr.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
489sys.stderr.softspace = -1:ValueError:('number must be greater or equal to zero',)
490<<< Finished
Bram Moolenaard4247472015-11-02 13:28:59 +0100491assert sys.stdout.isatty()==False:NOT FAILED
492assert sys.stdout.seekable()==False:NOT FAILED
493sys.stdout.close():NOT FAILED
494sys.stdout.flush():NOT FAILED
495assert sys.stderr.isatty()==False:NOT FAILED
496assert sys.stderr.seekable()==False:NOT FAILED
497sys.stderr.close():NOT FAILED
498sys.stderr.flush():NOT FAILED
Bram Moolenaarc476e522013-06-23 13:46:40 +0200499sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200500>> OutputWrite
Bram Moolenaard4247472015-11-02 13:28:59 +0100501assert sys.stdout.writable()==True:NOT FAILED
502assert sys.stdout.readable()==False:NOT FAILED
503assert sys.stderr.writable()==True:NOT FAILED
504assert sys.stderr.readable()==False:NOT FAILED
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200505sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200506>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200507sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200508sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200509>>> Testing *Iter* using sys.stdout.writelines(%s)
510sys.stdout.writelines(FailingIter()):NotImplementedError:('iter',)
511sys.stdout.writelines(FailingIterNext()):NotImplementedError:('next',)
512<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200513> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200514>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200515vim.command(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200516vim.command(u"\0"):TypeError:('expected string without null bytes',)
517vim.command("\0"):TypeError:('expected string without null bytes',)
518<<< Finished
519vim.command("", 2):TypeError:('command() takes exactly one argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200520> VimToPython
521> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200522>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200523vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200524vim.eval(u"\0"):TypeError:('expected string without null bytes',)
525vim.eval("\0"):TypeError:('expected string without null bytes',)
526<<< Finished
527vim.eval("", FailingTrue()):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200528> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200529>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200530vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200531vim.bindeval(u"\0"):TypeError:('expected string without null bytes',)
532vim.bindeval("\0"):TypeError:('expected string without null bytes',)
533<<< Finished
534vim.eval("", 2):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200536>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200537vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200538vim.strwidth(u"\0"):TypeError:('expected string without null bytes',)
539vim.strwidth("\0"):TypeError:('expected string without null bytes',)
540<<< Finished
541> VimForeachRTP
542vim.foreach_rtp(None):TypeError:("'NoneType' object is not callable",)
543vim.foreach_rtp(NoArgsCall()):TypeError:('__call__() takes exactly 1 argument (2 given)',)
544vim.foreach_rtp(FailingCall()):NotImplementedError:('call',)
545vim.foreach_rtp(int, 2):TypeError:('foreach_rtp() takes exactly one argument (2 given)',)
546> import
547import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
548import failing_import:ImportError:('No module named failing_import',)
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200549import failing:NotImplementedError:()
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100550> Options
551>> OptionsItem
552vim.options["abcQ"]:KeyError:('abcQ',)
553vim.options[""]:ValueError:('empty keys are not allowed',)
554>>> Testing StringToChars using vim.options[%s]
555vim.options[1]:TypeError:('expected str() or unicode() instance, but got int',)
556vim.options[u"\0"]:TypeError:('expected string without null bytes',)
557vim.options["\0"]:TypeError:('expected string without null bytes',)
558<<< Finished
559>> OptionsContains
560>>> Testing StringToChars using %s in vim.options
5611 in vim.options:TypeError:('expected str() or unicode() instance, but got int',)
562u"\0" in vim.options:TypeError:('expected string without null bytes',)
563"\0" in vim.options:TypeError:('expected string without null bytes',)
564<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200565> Dictionary
566>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200567vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200568>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200569del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200570d.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200571vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200572d.scope = True:AttributeError:('cannot set attribute scope',)
573d.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200575d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200576>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200577d.get(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200578d.get(u"\0"):TypeError:('expected string without null bytes',)
579d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200580<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200581d.pop("a"):KeyError:('a',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200582dl.pop("a"):error:('dictionary is locked',)
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100583>> DictionaryContains
584"" in d:ValueError:('empty keys are not allowed',)
5850 in d:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200586>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200587for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200588>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200589dl["b"] = 1:error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200590>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200591d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200592d[u"\0"] = 1:TypeError:('expected string without null bytes',)
593d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200594<<< Finished
595>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200596d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200597d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
598d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200599<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200600>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
601d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',)
602d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
603d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200604<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200605>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
606d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',)
607d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
608d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200610>>> Testing *Iter* using d["a"] = {"abcF" : %s}
611d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200612d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200613<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200614>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
615d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',)
616d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',)
617d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200618d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:('keys',)
619d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:('getitem:mappingkey',)
620d["a"] = {"abcF" : FailingNumber()}:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200621<<< Finished
622>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200623d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200624d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
625d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200626<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200627>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
628d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
629d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
630d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200631<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200632>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
633d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
634d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
635d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200637>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
638d["a"] = Mapping({"abcG" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200639d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200640<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200641>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
642d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',)
643d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',)
644d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200645d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:('keys',)
646d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
647d["a"] = Mapping({"abcG" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200650d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200651d["a"] = FailingIterNext():NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200652<<< Finished
653>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200654d["a"] = None:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200655d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
656d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200657d["a"] = FailingMapping():NotImplementedError:('keys',)
658d["a"] = FailingMappingKey():NotImplementedError:('getitem:mappingkey',)
659d["a"] = FailingNumber():TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200660<<< Finished
661>> DictionaryUpdate
662>>> kwargs
663>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200664d.update(FailingMapping()):NotImplementedError:('keys',)
665d.update([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100666d.update([FailingIterNextN(1)]):NotImplementedError:('next N',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200667>>> Testing *Iter* using d.update(%s)
668d.update(FailingIter()):NotImplementedError:('iter',)
669d.update(FailingIterNext()):NotImplementedError:('next',)
670<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200671>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200672d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200673d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
674d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200676>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
677d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
678d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
679d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200680<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200681>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
682d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
683d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
684d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200686>>> Testing *Iter* using d.update({"abcF" : %s})
687d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200688d.update({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200689<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200690>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
691d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
692d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
693d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200694d.update({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
695d.update({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
696d.update({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200697<<< Finished
698>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200699d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200700d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
701d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200702<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200703>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
704d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
705d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
706d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200707<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200708>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
709d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
710d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
711d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200712<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200713>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
714d.update(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200715d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200717>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
718d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
719d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
720d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200721d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
722d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
723d.update(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724<<< Finished
725>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200726d.update(FailingIter()):NotImplementedError:('iter',)
727d.update(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200728<<< Finished
729>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200730d.update(None):TypeError:("'NoneType' object is not iterable",)
731d.update({"": 1}):ValueError:('empty keys are not allowed',)
732d.update({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200733d.update(FailingMapping()):NotImplementedError:('keys',)
734d.update(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
735d.update(FailingNumber()):TypeError:("'FailingNumber' object is not iterable",)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200736<<< Finished
737>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200738d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200739d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
740d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200741<<< Finished
742>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200743d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200744d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
745d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200747>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
748d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',)
749d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
750d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200751<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200752>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
753d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',)
754d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
755d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200757>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
758d.update((("a", {"abcF" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200759d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200760<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200761>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
762d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',)
763d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
764d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200765d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:('keys',)
766d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:('getitem:mappingkey',)
767d.update((("a", {"abcF" : FailingNumber()}),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200768<<< Finished
769>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200770d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200771d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
772d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200773<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200774>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
775d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',)
776d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
777d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200778<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200779>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
780d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',)
781d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
782d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200783<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200784>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
785d.update((("a", Mapping({"abcG" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200786d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200788>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
789d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',)
790d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
791d.update((("a", Mapping({"abcG" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200792d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:('keys',)
793d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:('getitem:mappingkey',)
794d.update((("a", Mapping({"abcG" : FailingNumber()})),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795<<< Finished
796>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200797d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200798d.update((("a", FailingIterNext()),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200799<<< Finished
800>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200801d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200802d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
803d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200804d.update((("a", FailingMapping()),)):NotImplementedError:('keys',)
805d.update((("a", FailingMappingKey()),)):NotImplementedError:('getitem:mappingkey',)
806d.update((("a", FailingNumber()),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200807<<< Finished
808>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200809d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200810>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200811d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812> List
813>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200814vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
815vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200816>>> Testing *Iter* using vim.List(%s)
817vim.List(FailingIter()):NotImplementedError:('iter',)
818vim.List(FailingIterNext()):NotImplementedError:('next',)
819<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200820>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200821vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200822vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
823vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200824<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200825>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
826vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
827vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
828vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200829<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200830>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
831vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
832vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
833vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200835>>> Testing *Iter* using vim.List([{"abcF" : %s}])
836vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200837vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200838<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200839>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
840vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
841vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
842vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200843vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
844vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
845vim.List([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200846<<< Finished
847>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200848vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200849vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
850vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200851<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200852>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
853vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
854vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
855vim.List([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200856<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200857>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
858vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
859vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
860vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200861<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200862>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
863vim.List([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200864vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200865<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200866>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
867vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
868vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
869vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200870vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
871vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
872vim.List([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873<<< Finished
874>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200875vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200876vim.List([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200877<<< Finished
878>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200879vim.List([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200880vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
881vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200882vim.List([FailingMapping()]):NotImplementedError:('keys',)
883vim.List([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
884vim.List([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200885<<< Finished
886>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200887l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200888>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200889ll[1] = 2:error:('list is locked',)
890l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200891>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200892ll[1:100] = "abcJ":error:('list is locked',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200893>>> Testing *Iter* using l[:] = %s
894l[:] = FailingIter():NotImplementedError:('iter',)
895l[:] = FailingIterNext():NotImplementedError:('next',)
896<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100897nel[1:10:2] = "abcK":ValueError:('attempt to assign sequence of size greater than 2 to extended slice',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100898('a', 'b', 'c', 'O')
899nel[1:10:2] = "a":ValueError:('attempt to assign sequence of size 1 to extended slice of size 2',)
900('a', 'b', 'c', 'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100901nel[1:1:-1] = "a":ValueError:('attempt to assign sequence of size greater than 0 to extended slice',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100902('a', 'b', 'c', 'O')
903nel[:] = FailingIterNextN(2):NotImplementedError:('next N',)
904('a', 'b', 'c', 'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200906l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200907l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
908l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200909<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200910>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
911l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',)
912l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
913l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200914<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200915>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
916l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',)
917l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
918l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200920>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
921l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200922l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200923<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200924>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
925l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',)
926l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',)
927l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200928l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:('keys',)
929l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:('getitem:mappingkey',)
930l[:] = [{"abcF" : FailingNumber()}]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200931<<< Finished
932>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200933l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200934l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
935l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200936<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200937>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
938l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',)
939l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
940l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200941<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200942>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
943l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',)
944l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
945l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200947>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
948l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200949l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200950<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200951>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
952l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',)
953l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',)
954l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200955l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:('keys',)
956l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:('getitem:mappingkey',)
957l[:] = [Mapping({"abcG" : FailingNumber()})]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200958<<< Finished
959>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200960l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200961l[:] = [FailingIterNext()]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200962<<< Finished
963>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200964l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200965l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
966l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200967l[:] = [FailingMapping()]:NotImplementedError:('keys',)
968l[:] = [FailingMappingKey()]:NotImplementedError:('getitem:mappingkey',)
969l[:] = [FailingNumber()]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200970<<< Finished
971>> ListConcatInPlace
Bram Moolenaardee2e312013-06-23 16:35:47 +0200972>>> Testing *Iter* using l.extend(%s)
973l.extend(FailingIter()):NotImplementedError:('iter',)
974l.extend(FailingIterNext()):NotImplementedError:('next',)
975<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200976>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200977l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200978l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
979l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200980<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200981>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
982l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
983l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
984l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200985<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200986>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
987l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
988l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
989l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200990<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200991>>> Testing *Iter* using l.extend([{"abcF" : %s}])
992l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200993l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200995>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
996l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
997l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
998l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200999l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
1000l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
1001l.extend([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001002<<< Finished
1003>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001004l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001005l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
1006l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001007<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001008>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
1009l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
1010l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
1011l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001012<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001013>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1014l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
1015l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
1016l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001018>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1019l.extend([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001022>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1023l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
1024l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
1025l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
1027l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
1028l.extend([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001031l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001032l.extend([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033<<< Finished
1034>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001035l.extend([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001036l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
1037l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001038l.extend([FailingMapping()]):NotImplementedError:('keys',)
1039l.extend([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
1040l.extend([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001041<<< Finished
1042>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001043del l.locked:AttributeError:('cannot delete vim.List attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001044l.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001045l.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001046> Function
1047>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001048vim.Function("123"):ValueError:('unnamed function 123 does not exist',)
1049vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +02001050vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +02001051>> FunctionCall
1052>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001053f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001054f({u"\0" : 1}):TypeError:('expected string without null bytes',)
1055f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001056<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001057>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1058f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1059f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1060f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001061<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001062>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1063f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1064f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1065f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001066<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001067>>> Testing *Iter* using f({"abcF" : %s})
1068f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001069f({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001070<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001071>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1072f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1073f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1074f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001075f({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1076f({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1077f({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001078<<< Finished
1079>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001080f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001081f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1082f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001083<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001084>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1085f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1086f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1087f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001088<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001089>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1090f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1091f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1092f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001093<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001094>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1095f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001096f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001097<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001098>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1099f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1100f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1101f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001102f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1103f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1104f(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001105<<< Finished
1106>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001107f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001108f(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001109<<< Finished
1110>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001111f(None):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001112f({"": 1}):ValueError:('empty keys are not allowed',)
1113f({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001114f(FailingMapping()):NotImplementedError:('keys',)
1115f(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1116f(FailingNumber()):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001117<<< Finished
1118>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001119fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001120fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
1121fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001122<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001123>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1124fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1125fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1126fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001127<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001128>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1129fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1130fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1131fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001132<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001133>>> Testing *Iter* using fd(self={"abcF" : %s})
1134fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001135fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001136<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001137>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1138fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1139fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1140fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001141fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1142fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1143fd(self={"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001144<<< Finished
1145>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001146fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001147fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1148fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001149<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001150>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1151fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1152fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1153fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001154<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001155>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1156fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1157fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1158fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001159<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001160>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1161fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001162fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001163<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001164>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1165fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1166fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1167fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001168fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1169fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1170fd(self=Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001171<<< Finished
1172>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001173fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',)
1174fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001175<<< Finished
1176>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001177fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001178fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1179fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001180fd(self=FailingMapping()):NotImplementedError:('keys',)
1181fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1182fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001183<<< Finished
1184>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001185fd(self=[]):TypeError:('unable to convert list to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001186<<< Finished
1187> TabPage
1188>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001189vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001190> TabList
1191>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001192vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001193> Window
1194>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001195vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001196>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001197vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001198vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1199vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001200>>> Testing NumberToLong using vim.current.window.height = %s
1201vim.current.window.height = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1202vim.current.window.height = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1203vim.current.window.height = -1:ValueError:('number must be greater or equal to zero',)
1204<<< Finished
1205>>> Testing NumberToLong using vim.current.window.width = %s
1206vim.current.window.width = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1207vim.current.window.width = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1208vim.current.window.width = -1:ValueError:('number must be greater or equal to zero',)
1209<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001210vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001211> WinList
1212>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001213vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001214> Buffer
1215>> StringToLine (indirect)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001216vim.current.buffer[0] = u"\na":error:('string cannot contain newlines',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001217vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001218>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001219vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001220>> SetBufferLineList (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001221vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1222vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001223>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001224vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1225vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1226vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001227>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001228vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001229>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001230vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001231>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001232vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001233>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001234vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001235vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001236>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001237vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001238vim.current.buffer.mark("abcM"):ValueError:('mark name must be a single character',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001239vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001240>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001241vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001242> BufMap
1243>> BufMapItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001244vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001245>>> Testing NumberToLong using vim.buffers[%s]
1246vim.buffers[[]]:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1247vim.buffers[None]:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001248vim.buffers[-1]:ValueError:('number must be greater than zero',)
1249vim.buffers[0]:ValueError:('number must be greater than zero',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001250<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001251> Current
1252>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001253vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001254>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001255vim.current.line = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001256vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',)
1257vim.current.window = True:TypeError:('expected vim.Window object, but got bool',)
1258vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001259vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001260['/testdir']
1261'/testdir'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012622,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001263before
1264after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001265pythonx/topmodule/__init__.py
1266pythonx/topmodule/submodule/__init__.py
1267pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001268vim.command("throw 'abcN'"):error:('abcN',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001269Exe("throw 'def'"):error:('def',)
1270vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1271vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1272vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
Bram Moolenaar9fee7d42013-11-28 17:04:43 +01001273vim.eval("xxx_unknown_function_xxx()"):error:('Vim:E117: Unknown function: xxx_unknown_function_xxx',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001274vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
Bram Moolenaard6b8a522013-11-11 01:05:48 +01001275Caught KeyboardInterrupt
1276Running :put
1277No exception
1278