view test/bug-54490.tst @ 32057:f010a32986e4

Remove test of methods ov-classdef.cc that should have been in cset d98157d51a97. * ov-classdef.cc (F__methods__): Remove BIST test for __methods__ that is covered in methods.m
author Rik <rik@octave.org>
date Wed, 26 Apr 2023 09:55:12 -0700
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