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 // =============================================================================
9 // <-- Non-regression test for bug 12414 -->
11 // <-- Bugzilla URL -->
12 // http://bugzilla.scilab.org/show_bug.cgi?id=12414
14 // <-- Short Description -->
15 // SWITCH_m block had different behaviors for different types of inputs.
16 assert_checktrue(importXcosDiagram(SCI + "/modules/xcos/tests/nonreg_tests/bug_12414.xcos"));
17 Info = scicos_simulate(scs_m, list());
18 assert_checkequal(A.values($), uint16(1));
19 assert_checkequal(B.values($), 1.0);