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 8086 -->
10 // <-- CLI SHELL MODE -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=8086
15 // <-- Short Description -->
16 // Wrong error message was displayed when no input argument provided
18 // =============================================================================
19 macros_error_type_1 = ["isscalar"; ..
70 msg_error_ref_1 = _("%s: Wrong number of input argument(s): %d expected.\n");
71 for i=1:size(macros_error_type_1, "*")
72 assert_checkerror (macros_error_type_1(i) + "()" , msg_error_ref_1 , [] , macros_error_type_1(i) , 1);
74 // =============================================================================
75 macros_error_type_2 = ["base2dec"; ..
88 msg_error_ref_2 = _("%s: Wrong number of input argument(s): %d expected.\n");
89 for i=1:size(macros_error_type_2, "*")
90 assert_checkerror (macros_error_type_2(i) + "()" , msg_error_ref_2 , [] , macros_error_type_2(i) , 2);
92 // =============================================================================
93 macros_error_type_3 = ["complex"];
94 msg_error_ref_3 = _("%s: Wrong number of input arguments: %d to %d expected.\n");
95 for i=1:size(macros_error_type_3, "*")
96 assert_checkerror (macros_error_type_3(i) + "()" , msg_error_ref_3 , [] , macros_error_type_3(i) , 1, 2);
98 // =============================================================================
99 macros_error_type_4 = ["max"; ..
102 msg_error_ref_4 = _("%s: Wrong number of input argument(s).\n");
103 for i=1:size(macros_error_type_4, "*")
104 assert_checkerror (macros_error_type_4(i) + "()" , msg_error_ref_4 , [] , macros_error_type_4(i));
106 // =============================================================================