1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2015 - Scilab Enterprises - Charlotte Hecquet
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- TEST WITH GRAPHIC -->
10 // <-- Non-regression test for bug 13843 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/13843
15 // <-- Short Description -->
16 // plot2d and polarplot crashes Scilab with wrong strf argument
20 x = linspace(0,10,100);
21 errmsg = msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "plot2d", 4);
22 assert_checkerror("plot2d(x, sin(x),1, 111);", errmsg);
27 assert_checkerror("polarplot(sin(7*t),cos(8*t), [2 3], 111);", errmsg);