diff libinterp/corefcn/regexp.cc @ 21317:a4faec57f4c8

maint: remove semicolon after %!assert tests to follow Octave conventions. * testfun.txi: Remove semicolons from examples in manual and update remaider of text to reflect changes. * bsxfun.cc, cellfun.cc, data.cc, hash.cc, lu.cc, nproc.cc, rcond.cc, regexp.cc, sparse-xpow.cc, strfns.cc, symtab.cc, time.cc, variables.cc, ov-class.cc, ov-cx-diag.cc, ov-struct.cc, ov.cc, oct-parse.in.yy, pt-mat.cc, CMatrix.cc, oct-inttypes.cc, md5sum.m, blkdiag.m, cell2mat.m, interp1.m, interp2.m, interpft.m, num2str.m, repmat.m, ntsc2rgb.m, expm.m, inputname.m, polyvalm.m, blackman.m, hamming.m, hanning.m, eigs.m, median.m, binopdf.m, strsplit.m, strtok.m, assert.m, example.m, datevec.m, bug-38565.tst, build-sparse-tests.sh, classdef.tst, classes.tst, diag-perm.tst, index.tst, io.tst, logical-index.tst, nest.tst, parser.tst, prefer.tst, struct.tst: maint: remove semicolon after %!assert tests to follow Octave conventions.
author Rik <rik@octave.org>
date Sun, 21 Feb 2016 08:10:36 -0800
parents 40de9f8f23a6
children ad0599a0acc6
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc	Sun Feb 21 07:43:16 2016 -0800
+++ b/libinterp/corefcn/regexp.cc	Sun Feb 21 08:10:36 2016 -0800
@@ -1121,8 +1121,8 @@
 %! assert (a, {"oo"});
 %! assert (b, {"f", " bar"});
 
-%!assert (regexp ("\n", '\n'), 1);
-%!assert (regexp ("\n", "\n"), 1);
+%!assert (regexp ("\n", '\n'), 1)
+%!assert (regexp ("\n", "\n"), 1)
 
 %!test  # Bug #45407, escape sequences are silently converted
 %! assert (regexprep ('s', 's', 'x\.y'), 'x.y');
@@ -1283,8 +1283,8 @@
 %!assert (regexpi ({'asdfg-dfd';'-dfd-dfd-';'qasfdfdaq'}, {'-';'f';'q'}), {6;[3,7];[1,9]})
 %!assert (regexpi ('Strings', {'t', 's'}), {2, [1, 7]})
 
-%!assert (regexpi ("\n", '\n'), 1);
-%!assert (regexpi ("\n", "\n"), 1);
+%!assert (regexpi ("\n", '\n'), 1)
+%!assert (regexpi ("\n", "\n"), 1)
 */
 
 static octave_value
@@ -1484,10 +1484,10 @@
 %!assert (regexprep ("a[b]c{d}e-f=g", "[^A-Z0-9_]", "_", "once", "ignorecase"), "a_b]c{d}e-f=g")
 
 ## End conditions on replacement
-%!assert (regexprep ("abc", "(b)", ".$1"), "a.bc");
-%!assert (regexprep ("abc", "(b)", "$1"), "abc");
-%!assert (regexprep ("abc", "(b)", "$1."), "ab.c");
-%!assert (regexprep ("abc", "(b)", "$1.."), "ab..c");
+%!assert (regexprep ("abc", "(b)", ".$1"), "a.bc")
+%!assert (regexprep ("abc", "(b)", "$1"), "abc")
+%!assert (regexprep ("abc", "(b)", "$1."), "ab.c")
+%!assert (regexprep ("abc", "(b)", "$1.."), "ab..c")
 
 ## Test cell array arguments
 %!assert (regexprep ("abc", {"b","a"}, "?"), "??c")
@@ -1497,6 +1497,6 @@
 # Nasty lookbehind expression
 %!assert (regexprep ('x^(-1)+y(-1)+z(-1)=0', '(?<=[a-z]+)\(\-[1-9]*\)', '_minus1'),'x^(-1)+y_minus1+z_minus1=0')
 
-%!assert (regexprep ("\n", '\n', "X"), "X");
-%!assert (regexprep ("\n", "\n", "X"), "X");
+%!assert (regexprep ("\n", '\n', "X"), "X")
+%!assert (regexprep ("\n", "\n", "X"), "X")
 */