}
if (dblCols != (double) ((unsigned int) dblCols))
{
- Scierror(999, _("%s: Wrong value for input argument #%d: Scalar positive integer expected.\n"), "spzeros", 1);
+ Scierror(999, _("%s: Wrong value for input argument #%d: Scalar positive integer expected.\n"), "spzeros", 2);
return types::Function::Error;
}
// <-- Short Description -->
// spzeros(-1,-1) yields a corrupted result
-errMsg = _("%s: Wrong value for input argument #%d: Scalar positive integer expected.\n")
+errMsg = _("%s: Wrong value for input argument #%d: Scalar positive integer expected.")
assert_checkerror("spzeros(-1,-1)", msprintf(errMsg, "spzeros", 1));
assert_checkerror("spzeros(1,-1)", msprintf(errMsg, "spzeros", 2));
+++ /dev/null
-// ============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
-//
-// This file is distributed under the same license as the Scilab package.
-// ============================================================================
-// <-- CLI SHELL MODE -->
-// <-- Non-regression test for bug 490 -->
-// Please note that it is store under the request feature of Scilab
-//
-// <-- Bugzilla URL -->
-// http://requestzilla.scilab.org/show_bug.cgi?id=490
-//
-// <-- Short Description -->
-// Wrong size detection in sparse matrix
-toto = spzeros(2^16, 2^16);
-toto(1, 8) =toto(1, 8)+5;
-toto(1, 8) =toto(1, 8)+5;
-if toto(1, 8) == []; then bugmes();quit;end
// ============================================================================
// <-- CLI SHELL MODE -->
+// <-- NO CHECK REF -->
// <-- Non-regression test for bug 490 -->
// Please note that it is store under the request feature of Scilab
-//
+//
// <-- Bugzilla URL -->
// http://requestzilla.scilab.org/show_bug.cgi?id=490
//
// Wrong size detection in sparse matrix
toto = spzeros(2^16, 2^16);
-toto(1, 8) =toto(1, 8)+5;
-toto(1, 8) =toto(1, 8)+5;
-if toto(1, 8) == []; then pause, end
+toto(1, 8) = toto(1, 8)+5;
+toto(1, 8) = toto(1, 8)+5;
+assert_checkequal(toto(1, 8), sparse([1,1], 10));