update the reference of test fun2string - module string
Yann Collette [Tue, 30 Jun 2009 14:22:06 +0000 (16:22 +0200)]
scilab/modules/string/tests/unit_tests/fun2string.dia.ref

index cbe6aac..8b65932 100644 (file)
@@ -110,7 +110,12 @@ ref=["function []=foo()";
      "  z = 3;";
      "endfunction"];
 mputl(ref,TMPDIR+'/foo.sci');
-exec(TMPDIR+'/foo.sci')
+function []=foo()
+  y = 1
+  z = 3;
+endfunction
 if or(fun2string(foo,'foo')<>ref) then bugmes();quit;end
 // with nested functions
 // ---------------------
@@ -148,13 +153,13 @@ function foo()
 endfunction    
 ref=["function []=foo()";
      "  function foo3,a=1,endfunction";
-     "endfunction"];
+     "endfunction"]; 
 if or(fun2string(foo,'foo')<>ref) then bugmes();quit;end
 // with comments
 // -------------
 function a=foo//
     if a> 10 then //
-    end
+    end 
 endfunction
 ref= ["function a=foo(),//";
       "  if a > 10 then   //";