Add missing ref file 66/10566/2
Vincent COUVERT [Thu, 21 Feb 2013 22:00:40 +0000 (23:00 +0100)]
Change-Id: I2b3e1f322a20006b687a83d4f469759b753a04ca

scilab/modules/scinotes/tests/unit_tests/Actions.dia.ref [new file with mode: 0644]

diff --git a/scilab/modules/scinotes/tests/unit_tests/Actions.dia.ref b/scilab/modules/scinotes/tests/unit_tests/Actions.dia.ref
new file mode 100644 (file)
index 0000000..f879e66
--- /dev/null
@@ -0,0 +1,49 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - Calixte DENIZET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution.  The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+f=TMPDIR + "/file_to_correct.sci";
+mputl(["a=''abcdef''                                                                   ";
+       "if a==1";
+       "   b=1+""abcdef''         ";
+       "                       c=2";
+       " d=3                   ";
+       "                                               if                                              ";
+       "a=''abcdef""""""";
+       "           end";
+       "                               end              "], f);
+scinotes(f, ["indent" "trailing" "quote"]);
+good = ["a=""abcdef""";
+        "if a==1";
+       "    b=1+""abcdef""";
+       "    c=2";
+       "    d=3";
+       "    if";
+       "        a=""abcdef""""""";
+       "    end";
+       "end"]
+ good  =
+!a="abcdef"            !
+!                      !
+!if a==1               !
+!                      !
+!    b=1+"abcdef"      !
+!                      !
+!    c=2               !
+!                      !
+!    d=3               !
+!                      !
+!    if                !
+!                      !
+!        a="abcdef"""  !
+!                      !
+!    end               !
+!                      !
+!end                   !
+corrected = mgetl(f);
+if (good <> corrected) then bugmes();quit;end;