Mercurial > pytave
diff @pyobject/cell.m @ 427:750a86973625
Update doctests for display changes
The output of display was recently improved by commit
24546b7021db2ab2553357f691450144c6c5ab50 but the doctests were
not updated.
* @pyobject/dummy.m, @pyobject/cell.m, @pyobject/display.m: update doctests.
* pyargs.m: update doctests.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Wed, 25 Oct 2017 13:16:53 -0700 |
parents | 087e7bc3697f |
children | 3af3665348a1 |
line wrap: on
line diff
--- a/@pyobject/cell.m Wed Feb 21 16:12:39 2018 -0800 +++ b/@pyobject/cell.m Wed Oct 25 13:16:53 2017 -0700 @@ -28,7 +28,7 @@ ## @example ## @group ## L = pyeval ("[10.0, 20.0, 'hello']") -## @result{} L = [pyobject ...] +## @result{} L = [Python object of type list] ## ## [10.0, 20.0, 'hello'] ## @end group @@ -37,12 +37,14 @@ ## However, we can convert the list to a cell array: ## @example ## @group +## @c TODO: display of cell array in flux: savannah.gnu.org/bugs/?50756 +## @c doctest: +XFAIL ## C = cell (L) ## @result{} C = ## @{ ## [1,1] = 10 ## [1,2] = 20 -## = [pyobject ...] +## [1,3] = [Python object of type str] ## ## hello ## @} @@ -52,13 +54,15 @@ ## The conversion is not recursive, in the following sense: ## @example ## @group +## @c TODO: display of cell array in flux: savannah.gnu.org/bugs/?50756 +## @c doctest: +XFAIL ## L = pyeval ("[10.0, 20.0, [33.0, 44.0], 50.0]"); ## C = cell (L) ## @result{} C = ## @{ ## [1,1] = 10 ## [1,2] = 20 -## = [pyobject ...] +## [1,3] = [Python object of type list] ## ## [33.0, 44.0] ##