Mercurial > pytave
comparison @pyobject/subsref.m @ 343:fe6b9e618c98
Add %!xtests for known failures due to bugs in Octave
* @py/py.m, @pyobject/pyobject.m, @pyobject/subsasgn.m, @pyobject/subsref.m:
Add %!xtests for known failures due to bugs in Octave.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 16 Aug 2016 13:54:25 -0700 |
parents | 15c20ab4b80a |
children | 087e7bc3697f |
comparison
equal
deleted
inserted
replaced
342:6bd8f5e3542a | 343:fe6b9e618c98 |
---|---|
251 %! % ensure None is returned if nargout > 0 | 251 %! % ensure None is returned if nargout > 0 |
252 %! L = pyeval ("[1, None, 3]"); | 252 %! L = pyeval ("[1, None, 3]"); |
253 %! a = L{2}; | 253 %! a = L{2}; |
254 %! assert (char (a), "None") | 254 %! assert (char (a), "None") |
255 | 255 |
256 ## Test of multi-element indexing, fails to return correct number of output args | |
257 %!xtest | |
258 %! a = {1, 2, 3, 4, 5, 6}; | |
259 %! b = pyobject (a); | |
260 %! b{:}; | |
261 %! assert (ans, a{end}) | |
262 | |
263 %!xtest | |
264 %! a = {1, 2, 3, 4, 5, 6}; | |
265 %! b = pyobject (a); | |
266 %! c = {b{:}}; | |
267 %! assert (c, a) | |
268 | |
256 %!error <cannot index Python object> | 269 %!error <cannot index Python object> |
257 %! f = pyeval ("abs"); | 270 %! f = pyeval ("abs"); |
258 %! f{1} | 271 %! f{1} |
259 | 272 |
260 %!error <outputs must match> | 273 %!error <outputs must match> |