1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2018 - Stéphane Mottelet
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- NO CHECK REF -->
9 // <-- ENGLISH IMPOSED -->
11 // <-- Non-regression test for bug 15647 -->
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/show_bug.cgi?id=15647
16 // <-- Short Description -->
17 // spzeros(-1,-1) yields a corrupted result
19 errMsg = _("%s: Wrong value for input argument #%d: Scalar positive integer expected.\n")
20 assert_checkerror("spzeros(-1,-1)", msprintf(errMsg, "spzeros", 1));
21 assert_checkerror("spzeros(1,-1)", msprintf(errMsg, "spzeros", 2));