1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2017 - Samuel GOUGEON
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
9 // <-- NO CHECK REF -->
11 // <-- Non-regression test for bug 5602 -->
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/5602
16 // <-- Short Description -->
17 // Changing a component of a list in a cells array replaced the whole list with
20 c = {%i, list("ok", %z)};
22 assert_checkequal(c{1,2}, list("ok", %z^2));
24 assert_checkfalse(execstr("c(1,2)(2)", "errcatch")==0);