1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
10 // <-- Non-regression test for bug 14824 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=14824
15 // <-- Short Description -->
16 // Incorrect error message with mfprintf(fd, "%d", [])
17 fd = mopen('tmp.tmp', 'w');
18 str = "mfprintf(fd, ""%d"", [])";
19 assert_checkfalse(execstr(str ,"errcatch") == 0);
20 refMsg = msprintf(_("%s: Wrong number of input arguments: data doesn''t fit with format.\n"), "mfprintf");
21 assert_checkerror(str, refMsg);