diff libinterp/corefcn/rand.cc @ 21580:ecce63c99c3f

maint: Add semicolons to terminate code in %! blocks. * splineimages.m, Cell.cc, bsxfun.cc, cellfun.cc, conv2.cc, data.cc, debug.cc, file-io.cc, gcd.cc, getrusage.cc, graphics.cc, kron.cc, mappers.cc, oct-map.cc, ordschur.cc, psi.cc, rand.cc, variables.cc, __osmesa_print__.cc, amd.cc, audiodevinfo.cc, dmperm.cc, qr.cc, ov-bool-mat.cc, ov-class.cc, ov-fcn-handle.cc, ov-java.cc, oct-parse.in.yy, bicubic.m, delaunay3.m, accumarray.m, flip.m, fliplr.m, flipud.m, gradient.m, inputParser.m, interp1.m, narginchk.m, rot90.m, validateattributes.m, delaunay.m, delaunayn.m, griddata3.m, inpolygon.m, waitbar.m, gray2ind.m, hsv2rgb.m, im2double.m, image.m, imformats.m, imread.m, imshow.m, imwrite.m, ntsc2rgb.m, rgb2hsv.m, rgb2ntsc.m, isbanded.m, onenormest.m, edit.m, fullfile.m, license.m, ode23.m, ode45.m, glpk.m, annotation.m, legend.m, orient.m, text.m, area.m, barh.m, contour.m, line.m, plot.m, plot3.m, plotyy.m, quiver.m, stem.m, clf.m, copyobj.m, findobj.m, subplot.m, ppval.m, splinefit.m, ismember.m, freqz.m, unwrap.m, eigs.m, ichol.m, pcg.m, spdiags.m, svds.m, magic.m, lscov.m, median.m, ols.m, dec2base.m, strsplit.m, strtok.m, test.m, bug-31371.tst, bug-36025.tst, bug-44940.tst, build-sparse-tests.sh, class-concat.tst, classdef.tst, classes.tst, colormaps.tst, command.tst, ctor-vs-method.tst, error.tst, fcn-handle-derived-resolution.tst, for.tst, index.tst, io.tst, jit.tst, null-assign.tst, parser.tst, struct.tst, system.tst: Add semicolons to terminate code in %! blocks.
author Rik <rik@octave.org>
date Fri, 01 Apr 2016 16:03:29 -0700
parents 40de9f8f23a6
children aba2e6293dd8
line wrap: on
line diff
--- a/libinterp/corefcn/rand.cc	Fri Apr 01 14:56:52 2016 -0700
+++ b/libinterp/corefcn/rand.cc	Fri Apr 01 16:03:29 2016 -0700
@@ -753,7 +753,7 @@
 
 /*
 %!test
-%! randg ("state", 12)
+%! randg ("state", 12);
 %! assert (randg ([-inf, -1, 0, inf, nan]), [nan, nan, nan, nan, nan]); # *** Please report
 
 %!test
@@ -983,28 +983,28 @@
 %!test
 %! ## Test fixed state
 %! randp ("state", 1);
-%! assert (randp (5, 1, 6), [5 5 3 7 7 3])
+%! assert (randp (5, 1, 6), [5 5 3 7 7 3]);
 %!test
 %! ## Test fixed state
 %! randp ("state", 1);
-%! assert (randp (15, 1, 6), [13 15 8 18 18 15])
+%! assert (randp (15, 1, 6), [13 15 8 18 18 15]);
 %!test
 %! ## Test fixed state
 %! randp ("state", 1);
-%! assert (randp (1e9, 1, 6), [999915677 999976657 1000047684 1000019035 999985749 999977692], -1e-6)
+%! assert (randp (1e9, 1, 6), [999915677 999976657 1000047684 1000019035 999985749 999977692], -1e-6);
 %!test
 %! ## Test fixed state
 %! randp ("seed", 1);
 %! %%assert (randp (5, 1, 6), [8 2 3 6 6 8])
-%! assert (randp (5, 1, 5), [8 2 3 6 6])
+%! assert (randp (5, 1, 5), [8 2 3 6 6]);
 %!test
 %! ## Test fixed state
 %! randp ("seed", 1);
-%! assert (randp (15, 1, 6), [15 16 12 10 10 12])
+%! assert (randp (15, 1, 6), [15 16 12 10 10 12]);
 %!test
 %! ## Test fixed state
 %! randp ("seed", 1);
-%! assert (randp (1e9, 1, 6), [1000006208 1000012224 999981120 999963520 999963072 999981440], -1e-6)
+%! assert (randp (1e9, 1, 6), [1000006208 1000012224 999981120 999963520 999963072 999981440], -1e-6);
 %!test
 %! if (__random_statistical_tests__)
 %!   ## statistical tests may fail occasionally.