changeset 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 56c209ff0a08
children 20dea4a919c0 087bccd1ab49
files test/nest/nest.tst
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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)