blob: a4f1ac405130994b3cb45bc6c7d346d28d9d04b8 [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]
44['a', 0, 1, 2, 3]
45[0, 'b', 2, 3]
46[0, 1, 'c']
47[0, 1, 2, 3, 'd']
48[0, 1, 2, 'e', 3]
49['f', 2, 3]
50[0, 1, 'g', 2, 3]
51['h']
52[0, 1, 2, 3]
53[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
54[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
55[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
56Vim(python):E725:
57Vim(python):E117:
58[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020059KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020060TypeError
61TypeError
62ValueError
63TypeError
64TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020065KeyError
66KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020067d : locked:0;scope:0
68dl : locked:1;scope:0
69v: : locked:2;scope:1
70g: : locked:0;scope:2
71d:{'abc': 1}
72dl:{'def': 1}
73l : locked:0
74ll : locked:1
75l:[0]
76ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020077[0, 1, 2]
78['a', 'b']
79['c', 1]
80['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200810.0
Bram Moolenaarc11073c2012-09-05 19:17:42 +020082"\0": Vim(let):E859:
83{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010084undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +020085vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010086[1]
87[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar24b11fb2013-04-05 19:32:36 +020088[0, 1, 2, 3]
89[2, 3, 4, 5]
90[0, 1]
91[4, 5]
92[2, 3]
93[]
94[2, 3]
95[]
96[0, 1, 2, 3, 4, 5]
97[0, 1, 2, 3, 4, 5]
98[0, 1, 2, 3, 4, 5]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020099Abc
100bac
101def
102bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200103jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200104>>> paste
105 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200106 p/wopts1! KeyError
107 inv: 2! KeyError
108 wopts1! KeyError
109 wopts2! KeyError
110 wopts3! KeyError
111 p/bopts1! KeyError
112 inv: 2! KeyError
113 bopts1! KeyError
114 bopts2! KeyError
115 bopts3! KeyError
116 G: 1
117 W: 1:1 2:1 3:1 4:1
118 B: 1:1 2:1 3:1 4:1
119 del wopts3! KeyError
120 del bopts3! KeyError
121 G: 1
122 W: 1:1 2:1 3:1 4:1
123 B: 1:1 2:1 3:1 4:1
124>>> previewheight
125 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200126 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200127 p/wopts1! KeyError
128 inv: 'a'! KeyError
129 wopts1! KeyError
130 wopts2! KeyError
131 wopts3! KeyError
132 p/bopts1! KeyError
133 inv: 'a'! KeyError
134 bopts1! KeyError
135 bopts2! KeyError
136 bopts3! KeyError
137 G: 5
138 W: 1:5 2:5 3:5 4:5
139 B: 1:5 2:5 3:5 4:5
140 del wopts3! KeyError
141 del bopts3! KeyError
142 G: 5
143 W: 1:5 2:5 3:5 4:5
144 B: 1:5 2:5 3:5 4:5
145>>> operatorfunc
146 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200147 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200148 p/wopts1! KeyError
149 inv: 2! KeyError
150 wopts1! KeyError
151 wopts2! KeyError
152 wopts3! KeyError
153 p/bopts1! KeyError
154 inv: 2! KeyError
155 bopts1! KeyError
156 bopts2! KeyError
157 bopts3! KeyError
158 G: 'A'
159 W: 1:'A' 2:'A' 3:'A' 4:'A'
160 B: 1:'A' 2:'A' 3:'A' 4:'A'
161 del wopts3! KeyError
162 del bopts3! KeyError
163 G: 'A'
164 W: 1:'A' 2:'A' 3:'A' 4:'A'
165 B: 1:'A' 2:'A' 3:'A' 4:'A'
166>>> number
167 p/gopts1! KeyError
168 inv: 0! KeyError
169 gopts1! KeyError
170 p/wopts1: False
171 p/bopts1! KeyError
172 inv: 0! KeyError
173 bopts1! KeyError
174 bopts2! KeyError
175 bopts3! KeyError
176 G: 0
177 W: 1:1 2:1 3:0 4:0
178 B: 1:1 2:1 3:0 4:0
179 del wopts3! ValueError
180 del bopts3! KeyError
181 G: 0
182 W: 1:1 2:1 3:0 4:0
183 B: 1:1 2:1 3:0 4:0
184>>> numberwidth
185 p/gopts1! KeyError
186 inv: -100! KeyError
187 gopts1! KeyError
188 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200189 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200190 p/bopts1! KeyError
191 inv: -100! KeyError
192 bopts1! KeyError
193 bopts2! KeyError
194 bopts3! KeyError
195 G: 8
196 W: 1:3 2:5 3:2 4:8
197 B: 1:3 2:5 3:2 4:8
198 del wopts3! ValueError
199 del bopts3! KeyError
200 G: 8
201 W: 1:3 2:5 3:2 4:8
202 B: 1:3 2:5 3:2 4:8
203>>> colorcolumn
204 p/gopts1! KeyError
205 inv: 'abc'! KeyError
206 gopts1! KeyError
207 p/wopts1: ''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200208 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200209 p/bopts1! KeyError
210 inv: 'abc'! KeyError
211 bopts1! KeyError
212 bopts2! KeyError
213 bopts3! KeyError
214 G: ''
215 W: 1:'+2' 2:'+3' 3:'+1' 4:''
216 B: 1:'+2' 2:'+3' 3:'+1' 4:''
217 del wopts3! ValueError
218 del bopts3! KeyError
219 G: ''
220 W: 1:'+2' 2:'+3' 3:'+1' 4:''
221 B: 1:'+2' 2:'+3' 3:'+1' 4:''
222>>> statusline
223 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200224 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200225 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200226 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200227 p/bopts1! KeyError
228 inv: 0! KeyError
229 bopts1! KeyError
230 bopts2! KeyError
231 bopts3! KeyError
232 G: '1'
233 W: 1:'2' 2:'4' 3:'1' 4:'1'
234 B: 1:'2' 2:'4' 3:'1' 4:'1'
235 del bopts3! KeyError
236 G: '1'
237 W: 1:'2' 2:'1' 3:'1' 4:'1'
238 B: 1:'2' 2:'1' 3:'1' 4:'1'
239>>> autoindent
240 p/gopts1! KeyError
241 inv: 2! KeyError
242 gopts1! KeyError
243 p/wopts1! KeyError
244 inv: 2! KeyError
245 wopts1! KeyError
246 wopts2! KeyError
247 wopts3! KeyError
248 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200249 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200250 W: 1:0 2:1 3:0 4:1
251 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 del wopts3! KeyError
253 del bopts3! ValueError
254 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200255 W: 1:0 2:1 3:0 4:1
256 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200257>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200258 p/gopts1! KeyError
259 inv: 3! KeyError
260 gopts1! KeyError
261 p/wopts1! KeyError
262 inv: 3! KeyError
263 wopts1! KeyError
264 wopts2! KeyError
265 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200266 p/bopts1: 8
267 G: 8
268 W: 1:0 2:2 3:8 4:1
269 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200270 del wopts3! KeyError
271 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200272 G: 8
273 W: 1:0 2:2 3:8 4:1
274 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200275>>> omnifunc
276 p/gopts1! KeyError
277 inv: 1! KeyError
278 gopts1! KeyError
279 p/wopts1! KeyError
280 inv: 1! KeyError
281 wopts1! KeyError
282 wopts2! KeyError
283 wopts3! KeyError
284 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200285 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200286 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200287 W: 1:'A' 2:'B' 3:'' 4:'C'
288 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 del wopts3! KeyError
290 del bopts3! ValueError
291 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200292 W: 1:'A' 2:'B' 3:'' 4:'C'
293 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200294>>> preserveindent
295 p/gopts1! KeyError
296 inv: 2! KeyError
297 gopts1! KeyError
298 p/wopts1! KeyError
299 inv: 2! KeyError
300 wopts1! KeyError
301 wopts2! KeyError
302 wopts3! KeyError
303 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200304 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200305 W: 1:0 2:1 3:0 4:1
306 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200307 del wopts3! KeyError
308 del bopts3! ValueError
309 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200310 W: 1:0 2:1 3:0 4:1
311 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200312>>> path
Bram Moolenaar04188112013-06-01 20:32:12 +0200313 p/gopts1: '.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200314 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200315 p/wopts1! KeyError
316 inv: 0! KeyError
317 wopts1! KeyError
318 wopts2! KeyError
319 wopts3! KeyError
320 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200321 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200323 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
324 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200325 del wopts3! KeyError
326 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200327 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
328 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200329First line
330First line
331def
332First line
333Second line
334Third line
335(7, 2)
336<buffer test86.in><buffer >
337baz
338bar
339Second line
340Third line
341foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003421:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003431:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200344testdir/foo
3455:BufFilePre:5
3465:BufFilePost:5
347testdir/bar
3481:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003491:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200350testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200351valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200352i:<buffer test86.in>
353i2:<buffer test86.in>
354i:<buffer a>
355i3:<buffer test86.in>
3561:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003578:<buffer a>=<buffer a>
3589:<buffer b>=<buffer b>
35910:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003604
361i4:<buffer test86.in>
362i4:<buffer test86.in>
363StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200364Number of tabs: 4
365Current tab pages:
366 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
367 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200368 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200369 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
370 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200371 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200372 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
373 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200374 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
375 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200376 <tabpage 3>(4): 4 windows, current is <window 0>
377 Windows:
378 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
379 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
380 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
381 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
382Number of windows in current tab page: 4
383Current tab page: <tabpage 3>
384Current window: <window 0>: <window 0> is <window 0>
385Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
386ValueError at assigning foreign tab window
387Type error at assigning None to vim.current.window
388Type error at assigning None to vim.current.tabpage
389Type error at assigning None to vim.current.buffer
390Current tab page: <tabpage 2>
391Current window: <window 0>
392Current buffer: <buffer test86.in>
393Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200394w.valid: [True, False]
395t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200396vim.vars:Dictionary:True
397vim.options:Options:True
398vim.bindeval("{}"):Dictionary:True
399vim.bindeval("[]"):List:True
400vim.bindeval("function('tr')"):Function:True
401vim.current.buffer:Buffer:True
402vim.current.range:Range:True
403vim.current.window:Window:True
404vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200405current:__dir__,__members__,buffer,line,range,tabpage,window
406buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
407window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
408tabpage:__dir__,__members__,number,valid,vars,window,windows
409range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200410dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200411list:__dir__,__members__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200412function:__dir__,__members__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200413output:__dir__,__members__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200414{}
415{'a': 1}
416{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200417[]
418['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200420'
421abcdef
422line :
423abcdef
424abc
425line :
426abc'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200427['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200428['a', 'a']
429['a', 'b', 'c']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200430[2, 2]
431[2, 2]
Bram Moolenaarf4258302013-06-02 18:20:17 +0200432testdir
433test86.in
434src
435testdir/test86.in
436testdir
437test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200438> Output
439>> OutputSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200440del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",)
441sys.stdout.softspace = []:TypeError:('softspace must be an integer',)
442sys.stdout.attr = None:AttributeError:('invalid attribute',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200443>> OutputWrite
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200444sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200445>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200446sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
447sys.stdout.writelines([1]):TypeError:('writelines() requires list of strings',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200448> VimCommand
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200449vim.command(1):TypeError:('must be string, not int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200450> VimToPython
451> VimEval
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200452vim.eval(1):TypeError:('must be string, not int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200453> VimEvalPy
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200454vim.bindeval(1):TypeError:('must be string, not int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200455> VimStrwidth
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200456vim.strwidth(1):TypeError:('must be string, not int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200457> Dictionary
458>> DictionaryConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200459vim.Dictionary("abc"):ValueError:('expected sequence element of size 2',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200460>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200461del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
462d.locked = FailingTrue():NotImplementedError:()
463vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
464d.scope = True:AttributeError:('cannot set this attribute',)
465d.xxx = True:AttributeError:('cannot set this attribute',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200466>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200467d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200468>>> Testing StringToChars using d.get(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200469d.get(1):TypeError:('object must be string',)
470d.get(u"\0"):TypeError:('expected string without null bytes',)
471d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200472<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200473d.pop("a"):KeyError:('a',)
474dl.pop("a"):error:('dict is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200475>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200476for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200477>> DictionaryAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200478dl["b"] = 1:error:('dict is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200479>>> Testing StringToChars using d[%s] = 1
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200480d[1] = 1:TypeError:('object must be string',)
481d[u"\0"] = 1:TypeError:('expected string without null bytes',)
482d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200483<<< Finished
484>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200485d["a"] = {1 : 1}:TypeError:('object must be string',)
486d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
487d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200488<<< Finished
489>>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}}
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200490d["a"] = {"abc" : {1 : 1}}:TypeError:('object must be string',)
491d["a"] = {"abc" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
492d["a"] = {"abc" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200493<<< Finished
494>>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})}
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200495d["a"] = {"abc" : Mapping({1 : 1})}:TypeError:('object must be string',)
496d["a"] = {"abc" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
497d["a"] = {"abc" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200498<<< Finished
499>>> Testing *Iter* using d["a"] = {"abc" : %s}
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200500d["a"] = {"abc" : FailingIter()}:TypeError:('unable to convert to vim structure',)
501d["a"] = {"abc" : FailingIterNext()}:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200502<<< Finished
503>>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s}
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200504d["a"] = {"abc" : None}:TypeError:('unable to convert to vim structure',)
505d["a"] = {"abc" : {"": 1}}:ValueError:('empty keys are not allowed',)
506d["a"] = {"abc" : {u"": 1}}:ValueError:('empty keys are not allowed',)
507d["a"] = {"abc" : FailingMapping()}:NotImplementedError:()
508d["a"] = {"abc" : FailingMappingKey()}:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200509<<< Finished
510>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200511d["a"] = Mapping({1 : 1}):TypeError:('object must be string',)
512d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
513d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200514<<< Finished
515>>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200516d["a"] = Mapping({"abc" : {1 : 1}}):TypeError:('object must be string',)
517d["a"] = Mapping({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
518d["a"] = Mapping({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200519<<< Finished
520>>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200521d["a"] = Mapping({"abc" : Mapping({1 : 1})}):TypeError:('object must be string',)
522d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
523d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200524<<< Finished
525>>> Testing *Iter* using d["a"] = Mapping({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200526d["a"] = Mapping({"abc" : FailingIter()}):TypeError:('unable to convert to vim structure',)
527d["a"] = Mapping({"abc" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200528<<< Finished
529>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200530d["a"] = Mapping({"abc" : None}):TypeError:('unable to convert to vim structure',)
531d["a"] = Mapping({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',)
532d["a"] = Mapping({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',)
533d["a"] = Mapping({"abc" : FailingMapping()}):NotImplementedError:()
534d["a"] = Mapping({"abc" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200535<<< Finished
536>>> Testing *Iter* using d["a"] = %s
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200537d["a"] = FailingIter():TypeError:('unable to convert to vim structure',)
538d["a"] = FailingIterNext():NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200539<<< Finished
540>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200541d["a"] = None:TypeError:('unable to convert to vim structure',)
542d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
543d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
544d["a"] = FailingMapping():NotImplementedError:()
545d["a"] = FailingMappingKey():NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200546<<< Finished
547>> DictionaryUpdate
548>>> kwargs
549>>> iter
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200550d.update(FailingMapping()):NotImplementedError:()
551d.update([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200552>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200553d.update({1 : 1}):TypeError:('object must be string',)
554d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
555d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200556<<< Finished
557>>> Testing StringToChars using d.update({"abc" : {%s : 1}})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200558d.update({"abc" : {1 : 1}}):TypeError:('object must be string',)
559d.update({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
560d.update({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200561<<< Finished
562>>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200563d.update({"abc" : Mapping({1 : 1})}):TypeError:('object must be string',)
564d.update({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
565d.update({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200566<<< Finished
567>>> Testing *Iter* using d.update({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200568d.update({"abc" : FailingIter()}):TypeError:('unable to convert to vim structure',)
569d.update({"abc" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200570<<< Finished
571>>> Testing ConvertFromPyObject using d.update({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200572d.update({"abc" : None}):TypeError:('unable to convert to vim structure',)
573d.update({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',)
574d.update({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',)
575d.update({"abc" : FailingMapping()}):NotImplementedError:()
576d.update({"abc" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200577<<< Finished
578>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200579d.update(Mapping({1 : 1})):TypeError:('object must be string',)
580d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
581d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200582<<< Finished
583>>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200584d.update(Mapping({"abc" : {1 : 1}})):TypeError:('object must be string',)
585d.update(Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
586d.update(Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200587<<< Finished
588>>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200589d.update(Mapping({"abc" : Mapping({1 : 1})})):TypeError:('object must be string',)
590d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
591d.update(Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200592<<< Finished
593>>> Testing *Iter* using d.update(Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200594d.update(Mapping({"abc" : FailingIter()})):TypeError:('unable to convert to vim structure',)
595d.update(Mapping({"abc" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200596<<< Finished
597>>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200598d.update(Mapping({"abc" : None})):TypeError:('unable to convert to vim structure',)
599d.update(Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',)
600d.update(Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',)
601d.update(Mapping({"abc" : FailingMapping()})):NotImplementedError:()
602d.update(Mapping({"abc" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200603<<< Finished
604>>> Testing *Iter* using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200605d.update(FailingIter()):NotImplementedError:()
606d.update(FailingIterNext()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200607<<< Finished
608>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200609d.update(None):TypeError:("'NoneType' object is not iterable",)
610d.update({"": 1}):ValueError:('empty keys are not allowed',)
611d.update({u"": 1}):ValueError:('empty keys are not allowed',)
612d.update(FailingMapping()):NotImplementedError:()
613d.update(FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200614<<< Finished
615>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200616d.update(((1, 0),)):TypeError:('object must be string',)
617d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
618d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200619<<< Finished
620>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200621d.update((("a", {1 : 1}),)):TypeError:('object must be string',)
622d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
623d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200624<<< Finished
625>>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200626d.update((("a", {"abc" : {1 : 1}}),)):TypeError:('object must be string',)
627d.update((("a", {"abc" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
628d.update((("a", {"abc" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200629<<< Finished
630>>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200631d.update((("a", {"abc" : Mapping({1 : 1})}),)):TypeError:('object must be string',)
632d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
633d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200634<<< Finished
635>>> Testing *Iter* using d.update((("a", {"abc" : %s}),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200636d.update((("a", {"abc" : FailingIter()}),)):TypeError:('unable to convert to vim structure',)
637d.update((("a", {"abc" : FailingIterNext()}),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200638<<< Finished
639>>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200640d.update((("a", {"abc" : None}),)):TypeError:('unable to convert to vim structure',)
641d.update((("a", {"abc" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
642d.update((("a", {"abc" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
643d.update((("a", {"abc" : FailingMapping()}),)):NotImplementedError:()
644d.update((("a", {"abc" : FailingMappingKey()}),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200645<<< Finished
646>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200647d.update((("a", Mapping({1 : 1})),)):TypeError:('object must be string',)
648d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
649d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200650<<< Finished
651>>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200652d.update((("a", Mapping({"abc" : {1 : 1}})),)):TypeError:('object must be string',)
653d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
654d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200655<<< Finished
656>>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200657d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):TypeError:('object must be string',)
658d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
659d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200660<<< Finished
661>>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200662d.update((("a", Mapping({"abc" : FailingIter()})),)):TypeError:('unable to convert to vim structure',)
663d.update((("a", Mapping({"abc" : FailingIterNext()})),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200664<<< Finished
665>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200666d.update((("a", Mapping({"abc" : None})),)):TypeError:('unable to convert to vim structure',)
667d.update((("a", Mapping({"abc" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
668d.update((("a", Mapping({"abc" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
669d.update((("a", Mapping({"abc" : FailingMapping()})),)):NotImplementedError:()
670d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200671<<< Finished
672>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200673d.update((("a", FailingIter()),)):TypeError:('unable to convert to vim structure',)
674d.update((("a", FailingIterNext()),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200675<<< Finished
676>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200677d.update((("a", None),)):TypeError:('unable to convert to vim structure',)
678d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
679d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
680d.update((("a", FailingMapping()),)):NotImplementedError:()
681d.update((("a", FailingMappingKey()),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200682<<< Finished
683>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200684d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685>> DictionaryHasKey
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200686d.has_key():TypeError:('function takes exactly 1 argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200687> List
688>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200689vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
690vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200691>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200692vim.List([{1 : 1}]):TypeError:('object must be string',)
693vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
694vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200695<<< Finished
696>>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200697vim.List([{"abc" : {1 : 1}}]):TypeError:('object must be string',)
698vim.List([{"abc" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
699vim.List([{"abc" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200700<<< Finished
701>>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200702vim.List([{"abc" : Mapping({1 : 1})}]):TypeError:('object must be string',)
703vim.List([{"abc" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
704vim.List([{"abc" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200705<<< Finished
706>>> Testing *Iter* using vim.List([{"abc" : %s}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200707vim.List([{"abc" : FailingIter()}]):TypeError:('unable to convert to vim structure',)
708vim.List([{"abc" : FailingIterNext()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200709<<< Finished
710>>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200711vim.List([{"abc" : None}]):TypeError:('unable to convert to vim structure',)
712vim.List([{"abc" : {"": 1}}]):ValueError:('empty keys are not allowed',)
713vim.List([{"abc" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
714vim.List([{"abc" : FailingMapping()}]):NotImplementedError:()
715vim.List([{"abc" : FailingMappingKey()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200716<<< Finished
717>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200718vim.List([Mapping({1 : 1})]):TypeError:('object must be string',)
719vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
720vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200721<<< Finished
722>>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200723vim.List([Mapping({"abc" : {1 : 1}})]):TypeError:('object must be string',)
724vim.List([Mapping({"abc" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
725vim.List([Mapping({"abc" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200726<<< Finished
727>>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200728vim.List([Mapping({"abc" : Mapping({1 : 1})})]):TypeError:('object must be string',)
729vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
730vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200731<<< Finished
732>>> Testing *Iter* using vim.List([Mapping({"abc" : %s})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200733vim.List([Mapping({"abc" : FailingIter()})]):TypeError:('unable to convert to vim structure',)
734vim.List([Mapping({"abc" : FailingIterNext()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200735<<< Finished
736>>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200737vim.List([Mapping({"abc" : None})]):TypeError:('unable to convert to vim structure',)
738vim.List([Mapping({"abc" : {"": 1}})]):ValueError:('empty keys are not allowed',)
739vim.List([Mapping({"abc" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
740vim.List([Mapping({"abc" : FailingMapping()})]):NotImplementedError:()
741vim.List([Mapping({"abc" : FailingMappingKey()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200742<<< Finished
743>>> Testing *Iter* using vim.List([%s])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200744vim.List([FailingIter()]):TypeError:('unable to convert to vim structure',)
745vim.List([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200746<<< Finished
747>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200748vim.List([None]):TypeError:('unable to convert to vim structure',)
749vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
750vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
751vim.List([FailingMapping()]):NotImplementedError:()
752vim.List([FailingMappingKey()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200753<<< Finished
754>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200755l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200757ll[1] = 2:error:('list is locked',)
758l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759>> ListAssSlice
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200760ll[1:100] = "abc":error:('list is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200761>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200762l[:] = [{1 : 1}]:TypeError:('object must be string',)
763l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
764l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200765<<< Finished
766>>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200767l[:] = [{"abc" : {1 : 1}}]:TypeError:('object must be string',)
768l[:] = [{"abc" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
769l[:] = [{"abc" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200770<<< Finished
771>>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200772l[:] = [{"abc" : Mapping({1 : 1})}]:TypeError:('object must be string',)
773l[:] = [{"abc" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
774l[:] = [{"abc" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200775<<< Finished
776>>> Testing *Iter* using l[:] = [{"abc" : %s}]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200777l[:] = [{"abc" : FailingIter()}]:TypeError:('unable to convert to vim structure',)
778l[:] = [{"abc" : FailingIterNext()}]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200779<<< Finished
780>>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200781l[:] = [{"abc" : None}]:TypeError:('unable to convert to vim structure',)
782l[:] = [{"abc" : {"": 1}}]:ValueError:('empty keys are not allowed',)
783l[:] = [{"abc" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
784l[:] = [{"abc" : FailingMapping()}]:NotImplementedError:()
785l[:] = [{"abc" : FailingMappingKey()}]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200786<<< Finished
787>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200788l[:] = [Mapping({1 : 1})]:TypeError:('object must be string',)
789l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
790l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200791<<< Finished
792>>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200793l[:] = [Mapping({"abc" : {1 : 1}})]:TypeError:('object must be string',)
794l[:] = [Mapping({"abc" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
795l[:] = [Mapping({"abc" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200796<<< Finished
797>>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200798l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:TypeError:('object must be string',)
799l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
800l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200801<<< Finished
802>>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200803l[:] = [Mapping({"abc" : FailingIter()})]:TypeError:('unable to convert to vim structure',)
804l[:] = [Mapping({"abc" : FailingIterNext()})]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200805<<< Finished
806>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200807l[:] = [Mapping({"abc" : None})]:TypeError:('unable to convert to vim structure',)
808l[:] = [Mapping({"abc" : {"": 1}})]:ValueError:('empty keys are not allowed',)
809l[:] = [Mapping({"abc" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
810l[:] = [Mapping({"abc" : FailingMapping()})]:NotImplementedError:()
811l[:] = [Mapping({"abc" : FailingMappingKey()})]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200812<<< Finished
813>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200814l[:] = [FailingIter()]:TypeError:('unable to convert to vim structure',)
815l[:] = [FailingIterNext()]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200816<<< Finished
817>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200818l[:] = [None]:TypeError:('unable to convert to vim structure',)
819l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
820l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
821l[:] = [FailingMapping()]:NotImplementedError:()
822l[:] = [FailingMappingKey()]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200823<<< Finished
824>> ListConcatInPlace
Bram Moolenaar8600e402013-05-30 13:28:41 +0200825>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200826l.extend([{1 : 1}]):TypeError:('object must be string',)
827l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
828l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200829<<< Finished
830>>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200831l.extend([{"abc" : {1 : 1}}]):TypeError:('object must be string',)
832l.extend([{"abc" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
833l.extend([{"abc" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200834<<< Finished
835>>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200836l.extend([{"abc" : Mapping({1 : 1})}]):TypeError:('object must be string',)
837l.extend([{"abc" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
838l.extend([{"abc" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200839<<< Finished
840>>> Testing *Iter* using l.extend([{"abc" : %s}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200841l.extend([{"abc" : FailingIter()}]):TypeError:('unable to convert to vim structure',)
842l.extend([{"abc" : FailingIterNext()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200843<<< Finished
844>>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200845l.extend([{"abc" : None}]):TypeError:('unable to convert to vim structure',)
846l.extend([{"abc" : {"": 1}}]):ValueError:('empty keys are not allowed',)
847l.extend([{"abc" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
848l.extend([{"abc" : FailingMapping()}]):NotImplementedError:()
849l.extend([{"abc" : FailingMappingKey()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200850<<< Finished
851>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200852l.extend([Mapping({1 : 1})]):TypeError:('object must be string',)
853l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
854l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200855<<< Finished
856>>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200857l.extend([Mapping({"abc" : {1 : 1}})]):TypeError:('object must be string',)
858l.extend([Mapping({"abc" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
859l.extend([Mapping({"abc" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200860<<< Finished
861>>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200862l.extend([Mapping({"abc" : Mapping({1 : 1})})]):TypeError:('object must be string',)
863l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
864l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200865<<< Finished
866>>> Testing *Iter* using l.extend([Mapping({"abc" : %s})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200867l.extend([Mapping({"abc" : FailingIter()})]):TypeError:('unable to convert to vim structure',)
868l.extend([Mapping({"abc" : FailingIterNext()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200869<<< Finished
870>>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200871l.extend([Mapping({"abc" : None})]):TypeError:('unable to convert to vim structure',)
872l.extend([Mapping({"abc" : {"": 1}})]):ValueError:('empty keys are not allowed',)
873l.extend([Mapping({"abc" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
874l.extend([Mapping({"abc" : FailingMapping()})]):NotImplementedError:()
875l.extend([Mapping({"abc" : FailingMappingKey()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200876<<< Finished
877>>> Testing *Iter* using l.extend([%s])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200878l.extend([FailingIter()]):TypeError:('unable to convert to vim structure',)
879l.extend([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200880<<< Finished
881>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200882l.extend([None]):TypeError:('unable to convert to vim structure',)
883l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
884l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
885l.extend([FailingMapping()]):NotImplementedError:()
886l.extend([FailingMappingKey()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200887<<< Finished
888>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200889del l.locked:AttributeError:('cannot delete vim.List attributes',)
890l.locked = FailingTrue():NotImplementedError:()
891l.xxx = True:AttributeError:('cannot set this attribute',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200892> Function
893>> FunctionConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200894vim.Function("123"):ValueError:('unnamed function does not exist',)
895vim.Function("xxx_non_existent_function_xxx"):ValueError:('function does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +0200896vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200897>> FunctionCall
898>>> Testing StringToChars using f({%s : 1})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200899f({1 : 1}):TypeError:('object must be string',)
900f({u"\0" : 1}):TypeError:('expected string without null bytes',)
901f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200902<<< Finished
903>>> Testing StringToChars using f({"abc" : {%s : 1}})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200904f({"abc" : {1 : 1}}):TypeError:('object must be string',)
905f({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
906f({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200907<<< Finished
908>>> Testing StringToChars using f({"abc" : Mapping({%s : 1})})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200909f({"abc" : Mapping({1 : 1})}):TypeError:('object must be string',)
910f({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
911f({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200912<<< Finished
913>>> Testing *Iter* using f({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200914f({"abc" : FailingIter()}):TypeError:('unable to convert to vim structure',)
915f({"abc" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200916<<< Finished
917>>> Testing ConvertFromPyObject using f({"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200918f({"abc" : None}):TypeError:('unable to convert to vim structure',)
919f({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',)
920f({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',)
921f({"abc" : FailingMapping()}):NotImplementedError:()
922f({"abc" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200923<<< Finished
924>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200925f(Mapping({1 : 1})):TypeError:('object must be string',)
926f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
927f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200928<<< Finished
929>>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200930f(Mapping({"abc" : {1 : 1}})):TypeError:('object must be string',)
931f(Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
932f(Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200933<<< Finished
934>>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200935f(Mapping({"abc" : Mapping({1 : 1})})):TypeError:('object must be string',)
936f(Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
937f(Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200938<<< Finished
939>>> Testing *Iter* using f(Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200940f(Mapping({"abc" : FailingIter()})):TypeError:('unable to convert to vim structure',)
941f(Mapping({"abc" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200942<<< Finished
943>>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200944f(Mapping({"abc" : None})):TypeError:('unable to convert to vim structure',)
945f(Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',)
946f(Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',)
947f(Mapping({"abc" : FailingMapping()})):NotImplementedError:()
948f(Mapping({"abc" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200949<<< Finished
950>>> Testing *Iter* using f(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200951f(FailingIter()):TypeError:('unable to convert to vim structure',)
952f(FailingIterNext()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200953<<< Finished
954>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200955f(None):TypeError:('unable to convert to vim structure',)
956f({"": 1}):ValueError:('empty keys are not allowed',)
957f({u"": 1}):ValueError:('empty keys are not allowed',)
958f(FailingMapping()):NotImplementedError:()
959f(FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200960<<< Finished
961>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200962fd(self={1 : 1}):TypeError:('object must be string',)
963fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
964fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200965<<< Finished
966>>> Testing StringToChars using fd(self={"abc" : {%s : 1}})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200967fd(self={"abc" : {1 : 1}}):TypeError:('object must be string',)
968fd(self={"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
969fd(self={"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200970<<< Finished
971>>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200972fd(self={"abc" : Mapping({1 : 1})}):TypeError:('object must be string',)
973fd(self={"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
974fd(self={"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200975<<< Finished
976>>> Testing *Iter* using fd(self={"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200977fd(self={"abc" : FailingIter()}):TypeError:('unable to convert to vim structure',)
978fd(self={"abc" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200979<<< Finished
980>>> Testing ConvertFromPyObject using fd(self={"abc" : %s})
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200981fd(self={"abc" : None}):TypeError:('unable to convert to vim structure',)
982fd(self={"abc" : {"": 1}}):ValueError:('empty keys are not allowed',)
983fd(self={"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',)
984fd(self={"abc" : FailingMapping()}):NotImplementedError:()
985fd(self={"abc" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200986<<< Finished
987>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200988fd(self=Mapping({1 : 1})):TypeError:('object must be string',)
989fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
990fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200991<<< Finished
992>>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200993fd(self=Mapping({"abc" : {1 : 1}})):TypeError:('object must be string',)
994fd(self=Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
995fd(self=Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200996<<< Finished
997>>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200998fd(self=Mapping({"abc" : Mapping({1 : 1})})):TypeError:('object must be string',)
999fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1000fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001001<<< Finished
1002>>> Testing *Iter* using fd(self=Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001003fd(self=Mapping({"abc" : FailingIter()})):TypeError:('unable to convert to vim structure',)
1004fd(self=Mapping({"abc" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001005<<< Finished
1006>>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s}))
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001007fd(self=Mapping({"abc" : None})):TypeError:('unable to convert to vim structure',)
1008fd(self=Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',)
1009fd(self=Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',)
1010fd(self=Mapping({"abc" : FailingMapping()})):NotImplementedError:()
1011fd(self=Mapping({"abc" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001012<<< Finished
1013>>> Testing *Iter* using fd(self=%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001014fd(self=FailingIter()):TypeError:('unable to convert object to vim dictionary',)
1015fd(self=FailingIterNext()):TypeError:('unable to convert object to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001016<<< Finished
1017>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001018fd(self=None):TypeError:('unable to convert object to vim dictionary',)
1019fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1020fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
1021fd(self=FailingMapping()):NotImplementedError:()
1022fd(self=FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001023<<< Finished
1024>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001025fd(self=[]):TypeError:('unable to convert object to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001026<<< Finished
1027> TabPage
1028>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001029vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001030> TabList
1031>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001032vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033> Window
1034>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001035vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001036>> WindowSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001037vim.current.window.buffer = 0:TypeError:('readonly attribute',)
1038vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1039vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
1040vim.current.window.height = "abc":TypeError:('an integer is required',)
1041vim.current.window.width = "abc":TypeError:('an integer is required',)
1042vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001043> WinList
1044>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001045vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001046> Buffer
1047>> StringToLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001048vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001050vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001051>> SetBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001052vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1053vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001054>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001055vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1056vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1057vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001058>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001059vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001060>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001061vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001062>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001063vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001064>> BufferSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001065vim.current.buffer.name = True:TypeError:('object must be string',)
1066vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001067>> BufferMark
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001068vim.current.buffer.mark(0):TypeError:('must be string, not int',)
1069vim.current.buffer.mark("abc"):ValueError:('mark name must be a single character',)
1070vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001071>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001072vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001073> BufMap
1074>> BufMapItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001075vim.buffers[None]:TypeError:('key must be integer',)
1076vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001077> Current
1078>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001079vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001080>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001081vim.current.line = True:TypeError:('bad argument type for built-in operation',)
1082vim.current.buffer = True:TypeError:('expected vim.Buffer object',)
1083vim.current.window = True:TypeError:('expected vim.Window object',)
1084vim.current.tabpage = True:TypeError:('expected vim.TabPage object',)
1085vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaara9f22202013-06-11 18:48:21 +020010862,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001087before
1088after
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001089vim.command("throw 'abc'"):error:('abc',)
1090Exe("throw 'def'"):error:('def',)
1091vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1092vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1093vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
1094vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)