Mercurial > octave-libtiff
diff test/nest/nest.tst @ 28195:7567413e7246 stable
test for visibility of nested function in scripts called from parent function
* nest.tst: New tests.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Apr 2020 15:59:56 -0400 |
parents | bd51beb6205e |
children | 286fe9352cd6 |
line wrap: on
line diff
--- a/test/nest/nest.tst Wed Apr 08 14:56:27 2020 -0400 +++ b/test/nest/nest.tst Wed Apr 08 15:59:56 2020 -0400 @@ -150,3 +150,7 @@ %! f2 = counter (); %! observed = [f1(), f1(), f2(), f1(), f2()]; %! assert (observed, [1, 2, 1, 3, 2]); + +## Test visibility of nested function from script called from parent. +%!assert (script_nest_2 (42), 84); +%!error script_nest_2 (0)