Mercurial > octave
view test/bug-54490.tst @ 31226:44cf6bbeeca9
sparse-xpow.cc: Change return type from int to bool for internal function
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Mon, 12 Sep 2022 05:35:48 -0400 |
parents | 9080316864bf |
children |
line wrap: on
line source
%!function out = bug54490 () %! global k; %! k = 1; %! out = 3; %!endfunction %!test <*54490> %! global k; %! k = 2; %! a = [5, 6]; %! a(k) = bug54490 (); %! assert (a, [5, 3]); %! k = 2; %! a = [5, 6]; %! [a(k)] = bug54490 (); %! assert (a, [5, 3]); %! clear -global k; # cleanup after test