Mercurial > octave
changeset 28931:c5b1bbb95a66
maint: start %!demo or %!test blocks 2 newlines after endfunction.
* vectorize.m, ismethod.m, optimset.m, ostreamtube.m, streamribbon.m,
streamtube.m, graphics_toolkit.m, deconv.m, gmres.m, tfqmr.m:
Start %!demo or %!test blocks 2 newlines after endfunction.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 14 Oct 2020 14:38:00 -0700 |
parents | 2883b3d08b7e |
children | ec6fbdc9b6a9 |
files | scripts/legacy/vectorize.m scripts/miscellaneous/ismethod.m scripts/optimization/optimset.m scripts/plot/draw/ostreamtube.m scripts/plot/draw/streamribbon.m scripts/plot/draw/streamtube.m scripts/plot/util/graphics_toolkit.m scripts/polynomial/deconv.m scripts/sparse/gmres.m scripts/sparse/tfqmr.m |
diffstat | 10 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/legacy/vectorize.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/legacy/vectorize.m Wed Oct 14 14:38:00 2020 -0700 @@ -70,6 +70,7 @@ endif endfunction + %!assert (vectorize ("x.^2 + 1"), "x.^2 + 1") %!test %! fh = @(x) x.^2 + 1;
--- a/scripts/miscellaneous/ismethod.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/miscellaneous/ismethod.m Wed Oct 14 14:38:00 2020 -0700 @@ -51,6 +51,7 @@ endfunction + %!testif HAVE_JAVA; usejava ("jvm") %! assert (ismethod (javaObject ("java.lang.String", "Yo"), "hashCode"));
--- a/scripts/optimization/optimset.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/optimization/optimset.m Wed Oct 14 14:38:00 2020 -0700 @@ -199,6 +199,7 @@ endfunction + %!assert (isfield (optimset (), "TolFun")) %!assert (isfield (optimset ("tolFun", 1e-3), "TolFun")) %!assert (optimget (optimset ("tolx", 1e-2), "tOLx"), 1e-2)
--- a/scripts/plot/draw/ostreamtube.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/plot/draw/ostreamtube.m Wed Oct 14 14:38:00 2020 -0700 @@ -310,6 +310,7 @@ endfunction + %!demo %! clf; %! [x, y, z] = meshgrid (-1:0.1:1, -1:0.1:1, -3.5:0.1:0);
--- a/scripts/plot/draw/streamribbon.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/plot/draw/streamribbon.m Wed Oct 14 14:38:00 2020 -0700 @@ -396,6 +396,7 @@ endfunction + %!demo %! clf; %! [x, y, z] = meshgrid (0:0.2:4, -1:0.2:1, -1:0.2:1);
--- a/scripts/plot/draw/streamtube.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/plot/draw/streamtube.m Wed Oct 14 14:38:00 2020 -0700 @@ -332,6 +332,7 @@ endfunction + %!demo %! clf; %! [x, y, z] = meshgrid (-3:0.15:3, -1:0.1:1, -1:0.1:1);
--- a/scripts/plot/util/graphics_toolkit.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/plot/util/graphics_toolkit.m Wed Oct 14 14:38:00 2020 -0700 @@ -105,6 +105,7 @@ endfunction + %!testif HAVE_OPENGL, HAVE_QT; have_window_system () && any (strcmp ("qt", available_graphics_toolkits ())) %! unwind_protect %! hf = figure ("visible", "off");
--- a/scripts/polynomial/deconv.m Wed Oct 14 13:14:02 2020 -0700 +++ b/scripts/polynomial/deconv.m Wed Oct 14 14:38:00 2020 -0700 @@ -80,6 +80,7 @@ endfunction + %!test %! [b, r] = deconv ([3, 6, 9, 9], [1, 2, 3]); %! assert (b, [3, 0]);