view test/bug-54490.tst @ 28233:9a40d2b40db8

Scale ToolBarButton icons to 24x24 for better appearance (bug #58144). * ToolBarButton.cc (ToolBarButton, update): Call Utils::makeImageFromCData with width and height of 24, rather than 32.
author Rik <rik@octave.org>
date Tue, 21 Apr 2020 17:06:35 -0700
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