view test/bug-54490.tst @ 29112:9f39338a23cb stable release-6-1-0

Version 6.1.0 released * configure.ac (AC_INIT): Update version info for release. (OCTAVE_MINOR_VERSION): Set to 1. (OCTAVE_PATCH_VERSION): Set to 0. (OCTAVE_RELEASE_DATE): Set to 2020-11-26. * org.octave.Octave.appdata.xml: Add 6.1.0 to the list of version numbers and release dates. * NEWS: Update release date.
author John W. Eaton <jwe@octave.org>
date Thu, 26 Nov 2020 13:15:15 -0500
parents cc9da21511c1
children 2838bbd84b87
line wrap: on
line source

%!function out = bug54490 ()
%!  global k;
%!  k = 1;
%!  out = 3;
%!endfunction

%!test
%! 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