Mercurial > octave
view test/nest/bug_59989.m @ 32060:1203a2d81a42
Add BIST tests for Matlab compatibility for functions which accept negative dimensions.
* data.cc (Fones, Finf, Feps, Feye): Add BIST test for negative dimensions.
* rand.cc (Frand): Add BIST test for negative dimensions.
* ov-cell.cc (Fcell): Add BIST test for negative dimensions.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 26 Apr 2023 16:26:32 -0700 |
parents | 4de13dc0eff2 |
children |
line wrap: on
line source
function y = bug_59989 () unpacker = @(x) sum (x); function y = nest1 (x, a) y = a + unpacker (x); endfunction function y = nest2 (fh) x = [2, 3]; y = fh (x); endfunction a = 1; y = nest2 (@(x) nest1 (x, a)); endfunction