Mercurial > octave
view test/bug-53599.tst @ 32048:61db3c9377fb
ishold.m: Suppress BIST hold echo after 72d005398818 (bug @63923).
* scripts/plot/util/ishold.m: Change BIST to call 'hold on' instead of 'hold'
to avoid hold status echo appearing during self tests.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Fri, 21 Apr 2023 14:49:23 -0400 |
parents | 332a6ccac881 |
children |
line wrap: on
line source
%!function rval = sggval (val) %! global gval; %! if (nargin == 1) %! gval = val; %! else %! rval = gval; %! endif %!endfunction %!test <*53599> %! global gval; %! assert (isempty (gval)) %! sggval (13); %! assert (sggval (), 13); %! assert (gval, 13); %! clear global gval %! assert (sggval (), []) %! gval = 42; %! assert (sggval (), []); %! clear gval %! global gval; %! gval = 42; %! assert (sggval (), 42); %! clear -global gval; # cleanup after test