1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2016 - Samuel GOUGEON
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
9 // <-- Non-regression test for bug 14649 -->
11 // <-- Bugzilla URL -->
12 // http://bugzilla.scilab.org/show_bug.cgi?id=14649
14 // <-- Short Description -->
15 // isnan(complex(%inf, %inf)) returned %F
16 C = complex([-%inf -%inf %inf %inf], [-%inf %inf -%inf %inf]);
18 assert_checkequal(isnan(C), res);
19 assert_checkequal(isnan(sparse(C)), sparse(res));