Mercurial > jwe > octave
view test/bug-54490.tst @ 31157:839c0fb5d63c
build: Fix typo in cset f125ddb46055.
* test/file-encoding/module.mk: Fix name of temporary variable to
"file_encoding_TEST_FILES" so that it doesn't collide with existing
"pkg_TEST_FILES" in test/pkg/module.mk.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 26 Jul 2022 17:05:33 -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