summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug464.sci
blob: 574d71b02f77a1e071be3ad61cbdd5a6e7da92ec (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
// <-- Non-regression test for bug 464 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=464
//
// <-- Short Description -->
//    Bug Report Id: 12011200362191319
//     "1" is a double, and inttype is not defined for a double argument, according to the help. However, the error message is confusing; moreover, imho, it would be proper for inttype(double) to return 0, so as to be fully compatible with iconvert().
//
//    On Scilab CVS with " inttype " function
//    The Error Messages are:
//      -->inttype(1)  
//               !--error    44 
//    ***th argument is incorrect
//
//    Commands:  
//
//    Enrico Segre on Linux version RH 9 distribution RH 9 with  gnome as window manager
//    Israel  July 21, 2003 at 9:13:19


correct=%F
result=execstr("inttype(1)","errcatch","n")  
if result == 0 then 
   correct=(inttype(1)==0)
end
affich_result(correct, 464)