summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug475.sci
blob: 239b3c9907a92223d4491a86504a0ec912a6099d (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
// <-- Non-regression test for bug 475 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=475
//
// <-- Short Description -->
//    Bug Report Id: 120442003624175150
//    m=min(a) and m=max(a) give correct results
//
//
//    On Scilab CVS with " min(), max() " function
//    The Error Messages are:
//                                                 !--error    59 
//    incorrect # of outputs in the function
//    arguments are :
//     x         
//
//    Commands:  a=hypermat([3,3,1],uint16(1:9)); [m,k]=max(a)
//
//    or
//
//     a=hypermat([3,3,1],uint16(1:9)); [m,k]=min(a)
//
//    Enrico Segre on Linux version RH9 distribution  with  gnome as window manager
//    Israel  July 24, 2003 at 17:51:50

//correct=%F
a=hypermat([3,3,1],uint16(1:9))
result=execstr("[m,k]=max(a)","errcatch","n")  
if result == 0 then
   result=execstr("[m,k]=min(a)","errcatch","n")  
end
affich_result(result==0, 475)