1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2011 - DIGITEO - Clément DAVID
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
9 // <-- Non-regression test for bug 7953 -->
11 // <-- Bugzilla URL -->
12 // http://bugzilla.scilab.org/show_bug.cgi?id=7953
14 // <-- Short Description -->
15 // No error message were printed when the diagram is invalid.
17 xcos(mlist("diagram", "plop"));
20 [str, n] = lasterror();
21 assert_checkequal(n, 999);
22 assert_checkequal(strstr(str, "xcos"), str);