Add missing ref file
[scilab.git] / scilab / modules / scinotes / tests / unit_tests / Actions.dia.ref
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2011 - Calixte DENIZET
3 //
4 // This file must be used under the terms of the CeCILL.
5 // This source file is licensed as described in the file COPYING, which
6 // you should have received as part of this distribution.  The terms
7 // are also available at
8 // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9 f=TMPDIR + "/file_to_correct.sci";
10 mputl(["a=''abcdef''                                                                    ";
11        "if a==1";
12        "   b=1+""abcdef''         ";
13        "                        c=2";
14        " d=3                    ";
15        "                                                if                                              ";
16        "a=''abcdef""""""";
17        "           end";
18        "                                end              "], f);
19 scinotes(f, ["indent" "trailing" "quote"]);
20 good = ["a=""abcdef""";
21         "if a==1";
22         "    b=1+""abcdef""";
23         "    c=2";
24         "    d=3";
25         "    if";
26         "        a=""abcdef""""""";
27         "    end";
28         "end"]
29  good  =
30  
31 !a="abcdef"            !
32 !                      !
33 !if a==1               !
34 !                      !
35 !    b=1+"abcdef"      !
36 !                      !
37 !    c=2               !
38 !                      !
39 !    d=3               !
40 !                      !
41 !    if                !
42 !                      !
43 !        a="abcdef"""  !
44 !                      !
45 !    end               !
46 !                      !
47 !end                   !
48 corrected = mgetl(f);
49 if (good <> corrected) then bugmes();quit;end;