Mercurial > pytave
comparison @pyobject/pyobject.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 | 5c63651b0ec4 |
children | b1eff49bd139 |
comparison
equal
deleted
inserted
replaced
342:6bd8f5e3542a | 343:fe6b9e618c98 |
---|---|
339 | 339 |
340 %!error double (pyobject ("this is not a number")) | 340 %!error double (pyobject ("this is not a number")) |
341 %!error double (pyobject ()) | 341 %!error double (pyobject ()) |
342 %!error double (pyeval ("[1, 2, 3]")) | 342 %!error double (pyeval ("[1, 2, 3]")) |
343 | 343 |
344 ## Octave fails to resolve function overloads via function handles | |
345 %!xtest | |
346 %! fn = @double; | |
347 %! x = pyobject (int64 (42)); | |
348 %! assert (fn (x), double (x)) | |
349 | |
344 %!error (isequal (pyobject ())) | 350 %!error (isequal (pyobject ())) |
345 %!assert (! isequal (pyobject (1.2), 1.2)) | 351 %!assert (! isequal (pyobject (1.2), 1.2)) |
346 %!assert (isequal (pyobject ("a string"), pyobject ("a string"))) | 352 %!assert (isequal (pyobject ("a string"), pyobject ("a string"))) |
347 %!assert (isequal (pyeval ("None"), pyeval ("None"))) | 353 %!assert (isequal (pyeval ("None"), pyeval ("None"))) |
348 %!assert (! isequal (pyeval ("None"), pyeval ("None"), pyobject (10))) | 354 %!assert (! isequal (pyeval ("None"), pyeval ("None"), pyobject (10))) |