Mercurial > octave
diff test/parser.tst @ 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 | a4faec57f4c8 |
children | a3a412dee704 |
line wrap: on
line diff
--- a/test/parser.tst Fri Apr 01 14:56:52 2016 -0700 +++ b/test/parser.tst Fri Apr 01 16:03:29 2016 -0700 @@ -90,18 +90,18 @@ ## Level 11 (transpose and exponentiation) %!test %! a = 2; -%! assert (2 ^a++, 4) -%! assert (a, 3) -%! assert (2 ^--a ^2, 16) -%! assert (a, 2) -%! assert (2 ^++a, 8) -%! assert (a, 3) -%! assert (a' ^2, 9) -%! assert (2 ^sin(0), 1) -%! assert (-2 ^2, -4); -%! assert (2 ^+1 ^3, 8) -%! assert (2 ^-1 ^3, 0.125) -%! assert (2 ^~0 ^2, 4) +%! assert (2 ^a++, 4); +%! assert (a, 3); +%! assert (2 ^--a ^2, 16); +%! assert (a, 2); +%! assert (2 ^++a, 8); +%! assert (a, 3); +%! assert (a' ^2, 9); +%! assert (2 ^sin(0), 1); +%! assert (-2 ^2, -4);; +%! assert (2 ^+1 ^3, 8); +%! assert (2 ^-1 ^3, 0.125); +%! assert (2 ^~0 ^2, 4); %! assert (!0 ^0, false); %! assert (2*3 ^2, 18); %! assert (2+3 ^2, 11); @@ -315,7 +315,7 @@ %!test %! a = {1, @sin, 2, @cos}; %! b = {1 @sin 2 @cos}; -%! assert (a, b) +%! assert (a, b); ## Maybe unnecessary, but check that further changes to parser don't ## invalidate error handling (bug #46534).