Mercurial > octave
annotate test/nest/script_nest_script_2.m @ 28202:6c88000fed48 stable
add test files accidentally omitted from previous change 7567413e7246
* test/nest/script_nest_2.m, test/nest/script_nest_script_2.m:
New files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 11 Apr 2020 08:19:45 -0400 |
parents | |
children | fc4bb4bd1d5e |
rev | line source |
---|---|
28202
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # script_nest_script.m |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 if (x > 0) |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 r = x * 2; |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 else |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 ## Expect error since nested function should not be |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 ## visible in this context. |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 r = nest_fun (); |
6c88000fed48
add test files accidentally omitted from previous change 7567413e7246
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 endif |