diff scripts/testfun/test.m @ 19599: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 64f034147e9a
children 3f29b433bd5d
line wrap: on
line diff
--- a/scripts/testfun/test.m
+++ b/scripts/testfun/test.m
@@ -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))