Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 27499:2545345f8bd9
Set format to lowercase when called with no arguments.
* pr-output.cc (set_format_style): Set uppercase_format to false when called
with no arguments.
* pr-output.cc (Fformat): Update BIST test for new behavior.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 15 Oct 2019 18:30:29 -0700 |
parents | bea2823affa4 |
children | 1ef42010c53b |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Tue Oct 15 20:02:03 2019 -0400 +++ b/libinterp/corefcn/pr-output.cc Tue Oct 15 18:30:29 2019 -0700 @@ -3761,6 +3761,7 @@ set_output_prec (5); format = "short"; Vcompact_format = false; + uppercase_format = false; } format_string = format; @@ -3984,9 +3985,10 @@ %! [~, new_spacing] = format (); %! assert (new_spacing, "compact"); %! format; -%! [new_fmt, new_spacing] = format (); +%! [new_fmt, new_spacing, new_case] = format (); %! assert (new_fmt, "short"); %! assert (new_spacing, "loose"); +%! assert (new_case, "lowercase"); %! unwind_protect_cleanup %! format (old_fmt); %! format (old_spacing);