Mercurial > octave
view test/bug-53579.tst @ 32249:120134e43537
doc: Refine optimset, optimget docstring on paramter matching. (bug #64525)
* optimget.m, optimset.m: Clarify that pattern matching is case insensitive
and works by matching characters at the start of the parameter name. Remove
double negatives from notes about ignoring non-standard options. Ensure
consistent language used for options/parameters in both functions.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Thu, 10 Aug 2023 11:26:38 -0400 |
parents | 13362cd35b72 |
children |
line wrap: on
line source
%!function [raa, rbb, igaa, igbb] = sub1 (aa, bb) %! global aa bb; %! aa = 1; %! raa = aa; %! rbb = bb; %! igaa = isglobal ("aa"); %! igbb = isglobal ("bb"); %!endfunction %!test <*53579> %! global aa bb; %! assert (isglobal ("aa")); %! assert (isglobal ("bb")); %! aa = 3; %! xx = 5; %! warning ('off', 'Octave:global-local-conflict', 'local'); %! [raa, rbb, igaa, igbb] = sub1 (aa, xx); %! assert (raa, 1); %! assert (rbb, []); %! assert (igaa); %! assert (igbb); %! assert (xx, 5); %! clear -global aa bb; # cleanup after test