summaryrefslogtreecommitdiff
path: root/modules/io/tests/unit_tests/file.dia.ref
blob: d6ba3e6af142156d5d0aa4074ae1d951f48e70e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Allan CORNET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Allan CORNET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
[a,b,c,d,e] = file(500);
if a <> [] then bugmes();quit;end;
if b <> [] then bugmes();quit;end;
if c <> [] then bugmes();quit;end;
if d <> [] then bugmes();quit;end;
if e <> [] then bugmes();quit;end;
clear a b c d e
// =============================================================================
[a,b,c,d] = file(500);
if a <> [] then bugmes();quit;end;
if b <> [] then bugmes();quit;end;
if c <> [] then bugmes();quit;end;
if d <> [] then bugmes();quit;end;
clear a b c d 
// =============================================================================
[a,b,c] = file(500);
if a <> [] then bugmes();quit;end;
if b <> [] then bugmes();quit;end;
if c <> [] then bugmes();quit;end;
clear a b c
// =============================================================================
[a,b] = file(500);
if a <> [] then bugmes();quit;end;
if b <> [] then bugmes();quit;end;
clear a b
// =============================================================================
[a] = file(500);
if a <> [] then bugmes();quit;end;
clear a
// =============================================================================
file(500);
// =============================================================================
ierr = execstr("file(''toto'')","errcatch");
if (ierr <> 201) then bugmes();quit;end
// =============================================================================