summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug545.sci
blob: a12f1adb2adc04b32fa55ab0199842efa17bab72 (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
49
50
51
// <-- Non-regression test for bug 545 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=545
//
// <-- Short Description -->
//    Bug Report Id: 031202003109134720
//    This is obviously a conflict between a local variable ndims and the new function ndims(). 
//    I expect the same problem also in: 
//
//    macros/percent/%b_i_hm.sci
//    macros/percent/%hm_i_hm.sc
//    macros/percent/%p_i_hm.sci
//
//    Wasn't this an already solved issue??
//    On Scilab CVS with " %i_i_hm   " function
//    The Error Messages are:
//     Warning :redefining function: ndims                   
//             inside function: %i_i_hm                 
//
//    Commands: 
//    a=int8(hypermat({3 2 2}));b=hypermat({1 2 2});
//    a(1,:,:)=b
//    Enrico SEGRE on Linux version RH9 distribution  with   as window manager
//    Israel  
//    November 9, 2003 at 13:47:20


// Non-regression test file for bug 545
// Copyright INRIA
// Scilab Project
// Date : 9 Dec 2005

diary("bug545.txt");

a=int8(hypermat({3 2 2}));b=hypermat({1 2 2});
a(1,:,:)=b;

diary(0);

if MSDOS then
	[rep,stat]=unix_g("findstr /c:""redefining"" bug545.txt");
else
	[rep,stat]=unix_g("fgrep redefining bug545.txt") ;
end

if stat == 0 then
	affich_result(%F,545);
else
	affich_result(%T,545);
end;