Mercurial > octave-nkf
changeset 19436:5cd83b466a3e
test.m: Avoid num-to-str warning.
* test.m (__extract_test_code): Initialize body of code with "" rather than [].
author | Rik <rik@octave.org> |
---|---|
date | Mon, 15 Dec 2014 22:16:25 -0800 |
parents | 9035a36736af |
children | 03067dab10ca |
files | scripts/testfun/test.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/test.m Mon Dec 15 21:01:45 2014 -0800 +++ b/scripts/testfun/test.m Mon Dec 15 22:16:25 2014 -0800 @@ -740,7 +740,7 @@ function body = __extract_test_code (nm) fid = fopen (nm, "rt"); - body = []; + body = ""; if (fid >= 0) while (ischar (ln = fgets (fid))) if (strncmp (ln, "%!", 2))