view test/bug-38565.tst @ 19315:c8f03ccdc9ee

Align columns for freport() output. * file-io.cc (Ffreport): Update example in docstring to include arch column and new alignment. * oct-stream.cc (octave_stream_list::do_list_open_files): Use resetiosflags() to guarantee that setiosflags() function calls are respected.
author Rik <rik@octave.org>
date Sat, 20 Sep 2014 22:04:01 -0700
parents b9e510a1f308
children
line wrap: on
line source

%!function r = f (x)
%!  if (ischar (x))
%!    r = x;
%!  else
%!    error ("expecting character string");
%!  endif
%!endfunction

%!assert (eval ("f 10;"), "10");