Mercurial > octave
diff libinterp/corefcn/file-io.cc @ 31564:332a6ccac881 stable
maint: cleanup code in BIST tests to use Octave coding conventions.
* data.cc: Use keyword "endfor" rather than bare "end".
* file-io.cc, graphics.cc:
Remove semicolon ';' at end of "end_try_catch" keyword.
* variables.cc, bug-35448.tst, bug-53027.tst, bug-53579.tst, bug-53599.tst,
bug-53956.tst, bug-55758.tst, global.tst:
Use semicolon ';' after "global" variable declaration.
* for.tst, io.tst: Delete semicolon ';' at end of "for" loop declaration.
* struct.tst: Delete semicolon ';' at end of "function" declaration.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 27 Nov 2022 17:01:00 -0800 |
parents | 05a64f60bc1e |
children | 23520a50d74d |
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc Sun Nov 27 16:58:42 2022 -0500 +++ b/libinterp/corefcn/file-io.cc Sun Nov 27 17:01:00 2022 -0800 @@ -1942,7 +1942,7 @@ %! msg1 = "textscan: 1 parameters given, but only 0 values"; %! try %! C = textscan (fid, "", "headerlines"); -%! end_try_catch; +%! end_try_catch %! assert (! feof (fid)); %! fclose (fid); %! unlink (f); @@ -1954,7 +1954,7 @@ %! msg1 = "textscan: HeaderLines must be numeric"; %! try %! C = textscan (fid, "", "headerlines", "hh"); -%! end_try_catch; +%! end_try_catch %! fclose (fid); %! unlink (f); %! assert (msg1, lasterr); @@ -1979,7 +1979,7 @@ %! msg1 = "textscan: EndOfLine must be at most one character or '\\r\\n'"; %! try %! C = textscan (fid, "%f", "EndOfLine", "\n\r"); -%! end_try_catch; +%! end_try_catch %! fclose (fid); %! unlink (f); %! assert (msg1, lasterr); @@ -1992,7 +1992,7 @@ %! msg1 = "textscan: EndOfLine must be at most one character or '\\r\\n'"; %! try %! C = textscan (fid, "%f", "EndOfLine", 33); -%! end_try_catch; +%! end_try_catch %! fclose (fid); %! unlink (f); %! assert (msg1, lasterr);