1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2011 - DIGITEO - Allan CORNET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- Non-regression test for bug 8768 -->
10 // <-- CLI SHELL MODE -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=8768
15 // <-- Short Description -->
16 // GetRhsVar(..., STRING_DATATYPE did not check size of input argument
18 msgerr = msprintf(_("%s: Wrong size for input argument #%d: string expected.\n"), "with_module", 1);
19 assert_checkerror("with_module([""ffa"", ""ff""])", msgerr);
21 msgerr = msprintf(_("%s: Wrong size for input argument #%d: string expected.\n"), "clearfun", 1);
22 assert_checkerror("clearfun([""myfuncA"", ""myfuncB""])", msgerr);
24 msgerr = msprintf(_("%s: Wrong value for input argument #%d: ''%s'' or ''%s'' expected.\n"), "format", 1, "e", "v");
25 assert_checkerror("format([""e"", ""v""])", msgerr);