Mercurial > pytave
changeset 428:3af3665348a1
Also update doctests in compiled functions
* pycall.cc, pyeval.cc, pyexec.cc: Update doctests.
* @pyobject/dummy.m, @pyobject/cell.m: Use FIXME and https in comments.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 22 Feb 2018 15:55:15 -0800 |
parents | 750a86973625 |
children | c8543d9a4bff |
files | @pyobject/cell.m @pyobject/dummy.m pycall.cc pyeval.cc pyexec.cc |
diffstat | 5 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/@pyobject/cell.m Wed Oct 25 13:16:53 2017 -0700 +++ b/@pyobject/cell.m Thu Feb 22 15:55:15 2018 -0800 @@ -37,7 +37,7 @@ ## 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 FIXME: display of cell array in flux: https://savannah.gnu.org/bugs/?50756 ## @c doctest: +XFAIL ## C = cell (L) ## @result{} C = @@ -54,7 +54,7 @@ ## 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 FIXME: display of cell array in flux: https://savannah.gnu.org/bugs/?50756 ## @c doctest: +XFAIL ## L = pyeval ("[10.0, 20.0, [33.0, 44.0], 50.0]"); ## C = cell (L)
--- a/@pyobject/dummy.m Wed Oct 25 13:16:53 2017 -0700 +++ b/@pyobject/dummy.m Thu Feb 22 15:55:15 2018 -0800 @@ -136,7 +136,7 @@ ## or if needed, the list can be converted to a cell array: ## @example ## @group -## @c TODO: display of cell array in flux: savannah.gnu.org/bugs/?50756 +## @c FIXME: display of cell array in flux: https://savannah.gnu.org/bugs/?50756 ## @c doctest: +XFAIL ## cell (L) ## @result{} ans =
--- a/pycall.cc Wed Oct 25 13:16:53 2017 -0700 +++ b/pycall.cc Thu Feb 22 15:55:15 2018 -0800 @@ -61,7 +61,7 @@ pycall (s.add, 3)\n\ \n\ r = pycall (s.add, 4)\n\ - @result{} r = [pyobject ...]\n\ + @result{} r = [Python object of type NoneType]\n\ \n\ None\n\ \n\
--- a/pyeval.cc Wed Oct 25 13:16:53 2017 -0700 +++ b/pyeval.cc Thu Feb 22 15:55:15 2018 -0800 @@ -51,7 +51,7 @@ pyeval (\"sys.version\")\n\ @result{} ...\n\ pyeval (\"dict(two=2)\")\n\ - @result{} [pyobject ...]\n\ + @result{} [Python object of type dict]\n\ @{'two': 2@}\n\ @end group\n\ @end example\n\
--- a/pyexec.cc Wed Oct 25 13:16:53 2017 -0700 +++ b/pyexec.cc Thu Feb 22 15:55:15 2018 -0800 @@ -44,6 +44,8 @@ Examples:\n\ @example\n\ @group\n\ +@c FIXME: Python stdout not same as Octave's https://bitbucket.org/mtmiller/pytave/issues/58\n\ +@c doctest: +XFAIL\n\ pyexec (\"print(42)\")\n\ @print{} 42\n\ @end group\n\