1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2021 - Stéphane MOTTELET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
9 // <-- NO CHECK REF -->
11 // <-- Non-regression test for bug 11600 -->
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/11600
16 // <-- Short Description -->
17 // rand("foo") runs silently without returning an error
19 cmd = "rand(""foo"")";
20 msg = msprintf(_("%s: Wrong value for input argument #%d: ''%s'', ''%s'', ''%s'' or ''%s'' expected.\n"), "rand", 1,"info","seed","uniform","normal");
21 assert_checkerror(cmd,msg)
23 cmd = "rand(2,2,""foo"")";
24 msg = msprintf(_("%s: Wrong value for input argument #%d: ''%s'' or ''%s'' expected.\n"), "rand", 3, "uniform","normal");
25 assert_checkerror(cmd,msg)
27 cmd = "rand(2,""foo"")";
28 msg = msprintf(_("%s: Wrong value for input argument #%d: ''%s'' or ''%s'' expected.\n"), "rand", 2, "uniform","normal");
29 assert_checkerror(cmd,msg)