view test/bug-54490.tst @ 31206:df8ee95752aa

imformats: moved Tiff logic to default_formats * scripts/image/imformats.m: added logic in default_formats to use Tiff functions for tiff images if available. * scripts/io/Tiff.m: removed the PKG_ADD logic in favor of the imformats logic to make the function handles valid.
author magedrifaat <magedrifaat@gmail.com>
date Sat, 03 Sep 2022 20:36:33 +0200
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