view test/bug-54490.tst @ 31598:53fee053d962

# HG changeset patch # User Nicholas R. Jankowski <jankowski.nicholas@gmail.com> # Date 1669826933 18000 # Wed Nov 30 11:48:53 2022 -0500 # Node ID 6f7e0018c745ebb4fbecfc939e99459a4943c4fd # Parent 65157e496f5d92bac4190f7877df951eb3698ca3 doc: Adjust whitespace in tensorprod.m docstring and add author to contrib list * scripts/linear-algebra/tensorprod.m: Enforce two spaces after a period and keep lines under 80 characters. * doc/interpreter/contributors.in: add Kasper H. Filtenborg
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Wed, 30 Nov 2022 18:51:14 -0500
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