[Scilab-Dev] Writing test diagrams for xcos blocks

Clément DAVID clement.david at scilab-enterprises.com
Tue Jun 12 08:06:57 CEST 2012


Hi,

Take a look at xcos tests :), we use importXcosDiagram and xcos_simulate 
with diagrams containing a "to workspace" block.

Then we check against reference values using the assert functions.

--
Clément

Le 11/06/2012 21:26, Sumeet a écrit :
> I'm developing a signal processing blockset for xcos. For each block, I
> am creating a test diagram in parallel. I've attached a screenshot of my
> test diagram.
>
> As shown in the diagram, I send the matrix output by the block to the
> workspace, and write notes on the diagram stating the desired values in
> the matrices. However, this is cumbersome since it requires manual
> verification by the user. Is there something equivalent to an assert
> statement in xcos, that lets the user verify whether the block works
> correctly?
>
> Any creative ideas?
>
> Sumeet.
>
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> dev-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/


-- 
Clément DAVID
Scilab Enterprises
skype://clement_david_scilab



More information about the dev mailing list