changeset 19249:c61deba773ab

Add BIST test to perl() and python(). * perl.m, python.m: Reformat docstring to have a single line description of function first. Add BIST test.
author Rik <rik@octave.org>
date Sat, 04 Oct 2014 20:16:10 -0700
parents 8cc4a9bb253b
children 6443693a176f
files scripts/miscellaneous/perl.m scripts/miscellaneous/python.m
diffstat 2 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/perl.m	Sat Oct 04 20:06:27 2014 -0700
+++ b/scripts/miscellaneous/perl.m	Sat Oct 04 20:16:10 2014 -0700
@@ -21,9 +21,11 @@
 ## @deftypefnx {Function File} {@var{output} =} perl (@var{scriptfile}, @var{argument1}, @var{argument2}, @dots{})
 ## @deftypefnx {Function File} {[@var{output}, @var{status}] =} perl (@dots{})
 ## Invoke Perl script @var{scriptfile}, possibly with a list of command line
-## arguments.  Return output in @var{output} and optional status in
-## @var{status}.  If @var{scriptfile} is not an absolute file name it is
-## is searched for in the current directory and then in the Octave loadpath.
+## arguments.
+##
+## Return output in @var{output} and optional status in @var{status}.  If
+## @var{scriptfile} is not an absolute file name it is is searched for in the
+## current directory and then in the Octave loadpath.
 ## @seealso{system, python}
 ## @end deftypefn
 
@@ -49,3 +51,6 @@
 
 endfunction
 
+
+%!error <invalid arguments> perl (123)
+
--- a/scripts/miscellaneous/python.m	Sat Oct 04 20:06:27 2014 -0700
+++ b/scripts/miscellaneous/python.m	Sat Oct 04 20:16:10 2014 -0700
@@ -22,9 +22,11 @@
 ## @deftypefnx {Function File} {@var{output} =} python (@var{scriptfile}, @var{argument1}, @var{argument2}, @dots{})
 ## @deftypefnx {Function File} {[@var{output}, @var{status}] =} python (@dots{})
 ## Invoke Python script @var{scriptfile}, possibly with a list of command line
-## arguments.  Return output in @var{output} and optional status in
-## @var{status}.  If @var{scriptfile} is not an absolute file name it is
-## is searched for in the current directory and then in the Octave loadpath.
+## arguments.
+##
+## Return output in @var{output} and optional status in @var{status}.  If
+## @var{scriptfile} is not an absolute file name it is is searched for in the
+## current directory and then in the Octave loadpath.
 ## @seealso{system, perl}
 ## @end deftypefn
 
@@ -48,3 +50,6 @@
 
 endfunction
 
+
+%!error <invalid arguments> python (123)
+