view test/bug-54490.tst @ 26674:af47f245a2ad stable rc-5-0-91

bump version for first 5.1 release candidate * configure.ac (AC_INIT): Set version to 5.0.91. (OCTAVE_PATCH_VERSION): Now 91. (OCTAVE_RELEASE_DATE): Set to 2019-02-04.
author John W. Eaton <jwe@octave.org>
date Mon, 04 Feb 2019 17:49:53 +0000
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