Mercurial > hg > octave-lyh
diff scripts/testfun/test.m @ 10130:0c3609dd34cf
oct-parse.yy (eval_string): save and set reading_{script,fcn,classdef}_file vars
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 18 Jan 2010 16:04:09 -0500 |
parents | e68431e60e3d |
children | f7cf1a53e1c5 |
line wrap: on
line diff
--- a/scripts/testfun/test.m +++ b/scripts/testfun/test.m @@ -348,7 +348,7 @@ __signal_fail); else __name = __block(__name_position(1):__name_position(2)); - __code = [__block "\nendfunction"]; + __code = __block; try eval(__code); ## Define the function __clear = sprintf ("%sclear %s;\n", __clear, __name);