1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2015 - Scilab Enterprises - Vincent COUVERT
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- Non-regression test for bug 13517 -->
10 // <-- CLI SHELL MODE -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/13517
15 // <-- Short Description -->
16 // isdef fails with a vector of strings when she is used in a function and after
17 // a declaration of variable.
18 function bug_13517(str)
22 ierr=execstr("bug_13517(""a"")", "errcatch");
23 assert_checktrue(ierr==0);
24 ierr=execstr("bug_13517([""a"" ""b""])", "errcatch");
25 assert_checktrue(ierr==0);