summaryrefslogtreecommitdiff
path: root/modules/io/tests/unit_tests/file.tst
blob: 2c367c0491a729b12b39af8974023f96c0506b83 (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
48
// =============================================================================
// 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 pause,end;
if b <> [] then pause,end;
if c <> [] then pause,end;
if d <> [] then pause,end;
if e <> [] then pause,end;
clear a b c d e
// =============================================================================
[a,b,c,d] = file(500);
if a <> [] then pause,end;
if b <> [] then pause,end;
if c <> [] then pause,end;
if d <> [] then pause,end;
clear a b c d 
// =============================================================================
[a,b,c] = file(500);
if a <> [] then pause,end;
if b <> [] then pause,end;
if c <> [] then pause,end;
clear a b c
// =============================================================================
[a,b] = file(500);
if a <> [] then pause,end;
if b <> [] then pause,end;
clear a b
// =============================================================================
[a] = file(500);
if a <> [] then pause,end;
clear a
// =============================================================================
file(500);
// =============================================================================
ierr = execstr("file(''toto'')","errcatch");
if (ierr <> 201) then pause,end
// =============================================================================