blob: 8edb7499703cf41942d07ab91ef5888e073885d7 [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 Moolenaardd8aca62013-05-29 22:36:10 +0200450output:__dir__,__members__,flush,softspace,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 Moolenaarc476e522013-06-23 13:46:40 +0200491sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200492>> OutputWrite
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200493sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200494>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200495sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200496sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200497>>> Testing *Iter* using sys.stdout.writelines(%s)
498sys.stdout.writelines(FailingIter()):NotImplementedError:('iter',)
499sys.stdout.writelines(FailingIterNext()):NotImplementedError:('next',)
500<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200501> VimCommand
Bram Moolenaardee2e312013-06-23 16:35:47 +0200502>>> Testing StringToChars using vim.command(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200503vim.command(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200504vim.command(u"\0"):TypeError:('expected string without null bytes',)
505vim.command("\0"):TypeError:('expected string without null bytes',)
506<<< Finished
507vim.command("", 2):TypeError:('command() takes exactly one argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200508> VimToPython
509> VimEval
Bram Moolenaardee2e312013-06-23 16:35:47 +0200510>>> Testing StringToChars using vim.eval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200511vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200512vim.eval(u"\0"):TypeError:('expected string without null bytes',)
513vim.eval("\0"):TypeError:('expected string without null bytes',)
514<<< Finished
515vim.eval("", FailingTrue()):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200516> VimEvalPy
Bram Moolenaardee2e312013-06-23 16:35:47 +0200517>>> Testing StringToChars using vim.bindeval(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200518vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200519vim.bindeval(u"\0"):TypeError:('expected string without null bytes',)
520vim.bindeval("\0"):TypeError:('expected string without null bytes',)
521<<< Finished
522vim.eval("", 2):TypeError:('function takes exactly 1 argument (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200523> VimStrwidth
Bram Moolenaardee2e312013-06-23 16:35:47 +0200524>>> Testing StringToChars using vim.strwidth(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200525vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200526vim.strwidth(u"\0"):TypeError:('expected string without null bytes',)
527vim.strwidth("\0"):TypeError:('expected string without null bytes',)
528<<< Finished
529> VimForeachRTP
530vim.foreach_rtp(None):TypeError:("'NoneType' object is not callable",)
531vim.foreach_rtp(NoArgsCall()):TypeError:('__call__() takes exactly 1 argument (2 given)',)
532vim.foreach_rtp(FailingCall()):NotImplementedError:('call',)
533vim.foreach_rtp(int, 2):TypeError:('foreach_rtp() takes exactly one argument (2 given)',)
534> import
535import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
536import failing_import:ImportError:('No module named failing_import',)
Bram Moolenaar7e85d3d2013-06-23 16:40:39 +0200537import failing:NotImplementedError:()
Bram Moolenaar1028f4d2014-01-14 16:55:00 +0100538> Options
539>> OptionsItem
540vim.options["abcQ"]:KeyError:('abcQ',)
541vim.options[""]:ValueError:('empty keys are not allowed',)
542>>> Testing StringToChars using vim.options[%s]
543vim.options[1]:TypeError:('expected str() or unicode() instance, but got int',)
544vim.options[u"\0"]:TypeError:('expected string without null bytes',)
545vim.options["\0"]:TypeError:('expected string without null bytes',)
546<<< Finished
547>> OptionsContains
548>>> Testing StringToChars using %s in vim.options
5491 in vim.options:TypeError:('expected str() or unicode() instance, but got int',)
550u"\0" in vim.options:TypeError:('expected string without null bytes',)
551"\0" in vim.options:TypeError:('expected string without null bytes',)
552<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200553> Dictionary
554>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200555vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200556>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200557del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200558d.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200559vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200560d.scope = True:AttributeError:('cannot set attribute scope',)
561d.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200562>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200563d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200564>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200565d.get(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200566d.get(u"\0"):TypeError:('expected string without null bytes',)
567d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200568<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200569d.pop("a"):KeyError:('a',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200570dl.pop("a"):error:('dictionary is locked',)
Bram Moolenaarba2d7ff2013-11-04 00:34:53 +0100571>> DictionaryContains
572"" in d:ValueError:('empty keys are not allowed',)
5730 in d:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200574>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200575for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200576>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200577dl["b"] = 1:error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200578>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200579d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200580d[u"\0"] = 1:TypeError:('expected string without null bytes',)
581d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200582<<< Finished
583>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200584d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200585d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
586d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200587<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200588>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
589d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',)
590d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
591d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200592<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200593>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
594d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',)
595d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
596d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200597<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200598>>> Testing *Iter* using d["a"] = {"abcF" : %s}
599d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200600d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200601<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200602>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
603d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',)
604d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',)
605d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200606d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:('keys',)
607d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:('getitem:mappingkey',)
608d["a"] = {"abcF" : FailingNumber()}:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200609<<< Finished
610>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200611d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200612d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
613d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200614<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200615>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
616d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
617d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
618d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200619<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200620>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
621d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
622d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
623d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200624<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200625>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
626d["a"] = Mapping({"abcG" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200627d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200628<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200629>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
630d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',)
631d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',)
632d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200633d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:('keys',)
634d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
635d["a"] = Mapping({"abcG" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200636<<< Finished
637>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200638d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200639d["a"] = FailingIterNext():NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200640<<< Finished
641>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200642d["a"] = None:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200643d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
644d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200645d["a"] = FailingMapping():NotImplementedError:('keys',)
646d["a"] = FailingMappingKey():NotImplementedError:('getitem:mappingkey',)
647d["a"] = FailingNumber():TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>> DictionaryUpdate
650>>> kwargs
651>>> iter
Bram Moolenaardee2e312013-06-23 16:35:47 +0200652d.update(FailingMapping()):NotImplementedError:('keys',)
653d.update([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100654d.update([FailingIterNextN(1)]):NotImplementedError:('next N',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200655>>> Testing *Iter* using d.update(%s)
656d.update(FailingIter()):NotImplementedError:('iter',)
657d.update(FailingIterNext()):NotImplementedError:('next',)
658<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200659>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200660d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200661d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
662d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200663<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200664>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
665d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
666d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
667d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200668<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200669>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
670d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
671d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
672d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200673<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200674>>> Testing *Iter* using d.update({"abcF" : %s})
675d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200676d.update({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200677<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200678>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
679d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
680d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
681d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200682d.update({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
683d.update({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
684d.update({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685<<< Finished
686>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200687d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200688d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
689d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200690<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200691>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
692d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
693d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
694d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200695<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200696>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
697d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
698d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
699d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200700<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200701>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
702d.update(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200703d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200704<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200705>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
706d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
707d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
708d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200709d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
710d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
711d.update(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200712<<< Finished
713>>> Testing *Iter* using d.update(%s)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200714d.update(FailingIter()):NotImplementedError:('iter',)
715d.update(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
717>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200718d.update(None):TypeError:("'NoneType' object is not iterable",)
719d.update({"": 1}):ValueError:('empty keys are not allowed',)
720d.update({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200721d.update(FailingMapping()):NotImplementedError:('keys',)
722d.update(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
723d.update(FailingNumber()):TypeError:("'FailingNumber' object is not iterable",)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724<<< Finished
725>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200726d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200727d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
728d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200729<<< Finished
730>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200731d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200732d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
733d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200735>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
736d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',)
737d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
738d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200739<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200740>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
741d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',)
742d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
743d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200744<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200745>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
746d.update((("a", {"abcF" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200747d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200748<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200749>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
750d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',)
751d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
752d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200753d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:('keys',)
754d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:('getitem:mappingkey',)
755d.update((("a", {"abcF" : FailingNumber()}),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756<<< Finished
757>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200758d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200759d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
760d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200761<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200762>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
763d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',)
764d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
765d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200766<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200767>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
768d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',)
769d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
770d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200771<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200772>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
773d.update((("a", Mapping({"abcG" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200774d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200775<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200776>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
777d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',)
778d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
779d.update((("a", Mapping({"abcG" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200780d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:('keys',)
781d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:('getitem:mappingkey',)
782d.update((("a", Mapping({"abcG" : FailingNumber()})),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200783<<< Finished
784>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200785d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200786d.update((("a", FailingIterNext()),)):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200787<<< Finished
788>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200789d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200790d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
791d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200792d.update((("a", FailingMapping()),)):NotImplementedError:('keys',)
793d.update((("a", FailingMappingKey()),)):NotImplementedError:('getitem:mappingkey',)
794d.update((("a", FailingNumber()),)):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200795<<< Finished
796>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200797d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200798>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200799d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200800> List
801>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200802vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
803vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200804>>> Testing *Iter* using vim.List(%s)
805vim.List(FailingIter()):NotImplementedError:('iter',)
806vim.List(FailingIterNext()):NotImplementedError:('next',)
807<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200809vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200810vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
811vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200813>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
814vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
815vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
816vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200817<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200818>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
819vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
820vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
821vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200822<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200823>>> Testing *Iter* using vim.List([{"abcF" : %s}])
824vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200825vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200827>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
828vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
829vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
830vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200831vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
832vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
833vim.List([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
835>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200836vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200837vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
838vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200839<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200840>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
841vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
842vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
843vim.List([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200844<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200845>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
846vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
847vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
848vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200849<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200850>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
851vim.List([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200852vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200853<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200854>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
855vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
856vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
857vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200858vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
859vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
860vim.List([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200861<<< Finished
862>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200863vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200864vim.List([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200865<<< Finished
866>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200867vim.List([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200868vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
869vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200870vim.List([FailingMapping()]):NotImplementedError:('keys',)
871vim.List([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
872vim.List([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200873<<< Finished
874>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200875l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200876>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200877ll[1] = 2:error:('list is locked',)
878l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200879>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200880ll[1:100] = "abcJ":error:('list is locked',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200881>>> Testing *Iter* using l[:] = %s
882l[:] = FailingIter():NotImplementedError:('iter',)
883l[:] = FailingIterNext():NotImplementedError:('next',)
884<<< Finished
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100885nel[1:10:2] = "abcK":ValueError:('attempt to assign sequence of size greater than 2 to extended slice',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100886('a', 'b', 'c', 'O')
887nel[1:10:2] = "a":ValueError:('attempt to assign sequence of size 1 to extended slice of size 2',)
888('a', 'b', 'c', 'O')
Bram Moolenaar038e5d42014-03-12 15:26:40 +0100889nel[1:1:-1] = "a":ValueError:('attempt to assign sequence of size greater than 0 to extended slice',)
Bram Moolenaar063a46b2014-01-14 16:36:51 +0100890('a', 'b', 'c', 'O')
891nel[:] = FailingIterNextN(2):NotImplementedError:('next N',)
892('a', 'b', 'c', 'O')
Bram Moolenaar8600e402013-05-30 13:28:41 +0200893>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200894l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200895l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
896l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200898>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
899l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',)
900l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
901l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200902<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200903>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
904l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',)
905l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
906l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200908>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
909l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200910l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200911<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200912>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
913l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',)
914l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',)
915l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200916l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:('keys',)
917l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:('getitem:mappingkey',)
918l[:] = [{"abcF" : FailingNumber()}]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919<<< Finished
920>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200921l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200922l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
923l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200924<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200925>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
926l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',)
927l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
928l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200929<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200930>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
931l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',)
932l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
933l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200934<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200935>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
936l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200937l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200938<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200939>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
940l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',)
941l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',)
942l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200943l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:('keys',)
944l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:('getitem:mappingkey',)
945l[:] = [Mapping({"abcG" : FailingNumber()})]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200946<<< Finished
947>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200948l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200949l[:] = [FailingIterNext()]:NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200950<<< Finished
951>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200952l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200953l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
954l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200955l[:] = [FailingMapping()]:NotImplementedError:('keys',)
956l[:] = [FailingMappingKey()]:NotImplementedError:('getitem:mappingkey',)
957l[:] = [FailingNumber()]:TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200958<<< Finished
959>> ListConcatInPlace
Bram Moolenaardee2e312013-06-23 16:35:47 +0200960>>> Testing *Iter* using l.extend(%s)
961l.extend(FailingIter()):NotImplementedError:('iter',)
962l.extend(FailingIterNext()):NotImplementedError:('next',)
963<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +0200964>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200965l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200966l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
967l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200969>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
970l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
971l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
972l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200973<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200974>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
975l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
976l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
977l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200978<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200979>>> Testing *Iter* using l.extend([{"abcF" : %s}])
980l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200981l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200982<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200983>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
984l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
985l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
986l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +0200987l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:('keys',)
988l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:('getitem:mappingkey',)
989l.extend([{"abcF" : FailingNumber()}]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200990<<< Finished
991>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200992l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200993l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
994l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200995<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200996>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
997l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
998l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
999l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001000<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001001>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
1002l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
1003l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
1004l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001005<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001006>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
1007l.extend([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001008l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001009<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001010>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
1011l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
1012l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
1013l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001014l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:('keys',)
1015l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:('getitem:mappingkey',)
1016l.extend([Mapping({"abcG" : FailingNumber()})]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001017<<< Finished
1018>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001019l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001020l.extend([FailingIterNext()]):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001021<<< Finished
1022>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +02001023l.extend([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001024l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
1025l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001026l.extend([FailingMapping()]):NotImplementedError:('keys',)
1027l.extend([FailingMappingKey()]):NotImplementedError:('getitem:mappingkey',)
1028l.extend([FailingNumber()]):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001031del l.locked:AttributeError:('cannot delete vim.List attributes',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001032l.locked = FailingTrue():NotImplementedError:('bool',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001033l.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001034> Function
1035>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +02001036vim.Function("123"):ValueError:('unnamed function 123 does not exist',)
1037vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +02001038vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039>> FunctionCall
1040>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001041f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001042f({u"\0" : 1}):TypeError:('expected string without null bytes',)
1043f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001044<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001045>>> Testing StringToChars using f({"abcF" : {%s : 1}})
1046f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1047f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1048f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001050>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
1051f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1052f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1053f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001054<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001055>>> Testing *Iter* using f({"abcF" : %s})
1056f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001057f({"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001058<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001059>>> Testing ConvertFromPyObject using f({"abcF" : %s})
1060f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1061f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1062f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001063f({"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1064f({"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1065f({"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001066<<< Finished
1067>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001068f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001069f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1070f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001071<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001072>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
1073f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1074f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1075f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001076<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001077>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
1078f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1079f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1080f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001081<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001082>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
1083f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001084f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001085<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001086>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
1087f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1088f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1089f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001090f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1091f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1092f(Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001093<<< Finished
1094>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001095f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001096f(FailingIterNext()):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001097<<< Finished
1098>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001099f(None):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001100f({"": 1}):ValueError:('empty keys are not allowed',)
1101f({u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001102f(FailingMapping()):NotImplementedError:('keys',)
1103f(FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1104f(FailingNumber()):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001105<<< Finished
1106>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +02001107fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001108fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
1109fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001110<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001111>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
1112fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
1113fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
1114fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001115<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001116>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
1117fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
1118fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
1119fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001120<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001121>>> Testing *Iter* using fd(self={"abcF" : %s})
1122fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001123fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001124<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001125>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
1126fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
1127fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
1128fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001129fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',)
1130fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
1131fd(self={"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001132<<< Finished
1133>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +02001134fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001135fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
1136fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001137<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001138>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
1139fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
1140fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
1141fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001142<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001143>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1144fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1145fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1146fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001147<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001148>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1149fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001150fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001151<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001152>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1153fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1154fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1155fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001156fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
1157fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
1158fd(self=Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a number',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001159<<< Finished
1160>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001161fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',)
1162fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001163<<< Finished
1164>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001165fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001166fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1167fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001168fd(self=FailingMapping()):NotImplementedError:('keys',)
1169fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
1170fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001171<<< Finished
1172>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001173fd(self=[]):TypeError:('unable to convert list to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001174<<< Finished
1175> TabPage
1176>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001177vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001178> TabList
1179>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001180vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001181> Window
1182>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001183vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001184>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001185vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001186vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1187vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001188>>> Testing NumberToLong using vim.current.window.height = %s
1189vim.current.window.height = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1190vim.current.window.height = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1191vim.current.window.height = -1:ValueError:('number must be greater or equal to zero',)
1192<<< Finished
1193>>> Testing NumberToLong using vim.current.window.width = %s
1194vim.current.window.width = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1195vim.current.window.width = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
1196vim.current.window.width = -1:ValueError:('number must be greater or equal to zero',)
1197<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001198vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001199> WinList
1200>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001201vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001202> Buffer
1203>> StringToLine (indirect)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001204vim.current.buffer[0] = u"\na":error:('string cannot contain newlines',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001205vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001206>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001207vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001208>> SetBufferLineList (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001209vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1210vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001211>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001212vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1213vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1214vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001215>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001216vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001217>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001218vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001219>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001220vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001221>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001222vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001223vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001224>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001225vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001226vim.current.buffer.mark("abcM"):ValueError:('mark name must be a single character',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001227vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001228>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001229vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001230> BufMap
1231>> BufMapItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001232vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001233>>> Testing NumberToLong using vim.buffers[%s]
1234vim.buffers[[]]:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
1235vim.buffers[None]:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
Bram Moolenaar038e5d42014-03-12 15:26:40 +01001236vim.buffers[-1]:ValueError:('number must be greater than zero',)
1237vim.buffers[0]:ValueError:('number must be greater than zero',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001238<<< Finished
Bram Moolenaar8600e402013-05-30 13:28:41 +02001239> Current
1240>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001241vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001242>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001243vim.current.line = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001244vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',)
1245vim.current.window = True:TypeError:('expected vim.Window object, but got bool',)
1246vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001247vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaardee2e312013-06-23 16:35:47 +02001248['/testdir']
1249'/testdir'
Bram Moolenaara9f22202013-06-11 18:48:21 +020012502,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001251before
1252after
Bram Moolenaardee2e312013-06-23 16:35:47 +02001253pythonx/topmodule/__init__.py
1254pythonx/topmodule/submodule/__init__.py
1255pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001256vim.command("throw 'abcN'"):error:('abcN',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001257Exe("throw 'def'"):error:('def',)
1258vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1259vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1260vim.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 +01001261vim.eval("xxx_unknown_function_xxx()"):error:('Vim:E117: Unknown function: xxx_unknown_function_xxx',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001262vim.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 +01001263Caught KeyboardInterrupt
1264Running :put
1265No exception
1266