1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2013 - Scilab Enterprises - Alexandre HERISSE
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
10 // <-- Non-regression test for bug 12414 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=12414
15 // <-- Short Description -->
16 // SWITCH_m block had different behaviors for different types of inputs.
18 assert_checktrue(importXcosDiagram(SCI + "/modules/xcos/tests/nonreg_tests/bug_12414.xcos"));
19 Info = scicos_simulate(scs_m, list());
21 assert_checkequal(A.values($), uint16(1));
22 assert_checkequal(B.values($), 1.0);