# HG changeset patch # User John W. Eaton # Date 1586607585 14400 # Node ID 6c88000fed4826c9632ab3dea24411eb69ef54bd # Parent bc6dae9cbe7334d6e0ba368b7b68555934c89a0a add test files accidentally omitted from previous change 7567413e7246 * test/nest/script_nest_2.m, test/nest/script_nest_script_2.m: New files. diff -r bc6dae9cbe73 -r 6c88000fed48 test/nest/script_nest_2.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/nest/script_nest_2.m Sat Apr 11 08:19:45 2020 -0400 @@ -0,0 +1,7 @@ +# script_nest.m +function r = script_nest_2 (x) + function r = nest_fun () + r = 13; + endfunction + script_nest_script_2; +endfunction diff -r bc6dae9cbe73 -r 6c88000fed48 test/nest/script_nest_script_2.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/nest/script_nest_script_2.m Sat Apr 11 08:19:45 2020 -0400 @@ -0,0 +1,8 @@ +# script_nest_script.m +if (x > 0) + r = x * 2; +else + ## Expect error since nested function should not be + ## visible in this context. + r = nest_fun (); +endif