view test/bug-54490.tst @ 31158:8f67b53ac9ff

configure.ac: clean up ordering of macros, comments. * configure.ac: Use consistent wording for section headings (/^###/). Re-order macros to put more important tests first and group related macros.
author Rik <rik@octave.org>
date Tue, 26 Jul 2022 17:20:13 -0700
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