Mercurial > octave
diff libinterp/corefcn/sub2ind.cc @ 28907:11f1207111c5
maint: Don't use semicolon at end of single-line BIST tests.
* Cell.cc, colamd.cc, mappers.cc, sparse.cc, strfns.cc, sub2ind.cc, tril.cc,
variables.cc, ov-cell.cc, integral3.m, quadv.m, import.m, isosurface.m,
betainc.m, cosint.m, gammainc.m, native2unicode.m, bug-50014.tst,
package-function.tst, static-method.tst, func.tst, if.tst, bug-51725.tst,
mk-sparse-tst.sh, nest.tst, pkg.tst:
Delete semicolon from end of %!assert, %!error, %!warning
single-line BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Oct 2020 14:23:39 -0700 |
parents | 9a965fec21c1 |
children | d9d028b479ac |
line wrap: on
line diff
--- a/libinterp/corefcn/sub2ind.cc Tue Oct 13 13:55:09 2020 -0700 +++ b/libinterp/corefcn/sub2ind.cc Tue Oct 13 14:23:39 2020 -0700 @@ -313,7 +313,7 @@ %! r = ind2sub ([2, 2, 2], 1:8); %! assert (r, 1:8); -%!error <DIMS must contain integers> ind2sub ([2, -2], 3); -%!error <index out of range> ind2sub ([2, 2, 2], 1:9); -%!error <invalid index> ind2sub ([2, 2, 2], -1:8); +%!error <DIMS must contain integers> ind2sub ([2, -2], 3) +%!error <index out of range> ind2sub ([2, 2, 2], 1:9) +%!error <invalid index> ind2sub ([2, 2, 2], -1:8) */