summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1014.sci
blob: 2c81a0bbff9ca0456a3601112af95c56c493ae8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// <-- Non-regression test for bug 1014 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1014
//
// <-- Short Description -->
//    Nan bug (Windows)
//    b=%nan;
//    a=1/b
//
//    produces a "Division by zero" error


// bug1014
// Allan CORNET
clear
a=%nan;
b=1/a;
affich_result( isnan(b) == %T , 1014)
clear