Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_1... 83/16583/6
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Wed, 3 Jun 2015 07:51:10 +0000 (09:51 +0200)
committerClément DAVID <clement.david@scilab-enterprises.com>
Fri, 12 Jun 2015 14:35:28 +0000 (16:35 +0200)
commitf9b656ddca889130350fffecf2043d28f4401fa4
tree728f3413595741f7fcd03c8cb28b99d0aa7b1c51
parent56461c8722e7d56fe92437f957f6068d1373c0ad
Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_12998 and bug_8235

Fixed tests:
 * computational_functions: "two dots spacing" doesn't work in YaSp
 * cumsum: had trouble when 'opar' contained complex values
 * error_reporting_nw: fixed deliberate wrong 'ipar' in an inner input/output Superblock block yielding an error
by arbitrarily replacing the wrong value with the maximum possible value (like in Scilab 5)
 * model2blk: squaring with Scilab 5's createblklist
 * bug_12998: inserting an empty diagram in 'block.model.rpar' failed
 * bug_8235: modified script2var logic to not use the stack at all anymore, because it changed a lot between Scilab 5 and 6

In progress / missing in YaSp:
 * bug_9478: in ModelAdapter, allowed 'dep_ut' to be a row OR column vector, but test doesn't pass yet because of export_to_hdf5
 * DEBUG_SCICOS: made a big leap forward, but cannot test yet because YaSp doesn't allow saving functions in files yet!
 * scicos_diagram: need fieldnames(scs_m) to work.
So far I am able to return ["props" "objs "version" "contrib"] but not with "diagram" at the beginning.
How should it be detected by sci_fieldnames.cpp? By hardcoding it? By including "DiagramAdapter.hxx" to call get getSharedTypeStr()?

 * Regenerated bug_13396, fromws_c, fromws_tows_c and post_xcos_simulate ref files

Change-Id: Ib6636788b72506ae22f68457728e1ef869a3e12a
12 files changed:
scilab/modules/scicos/macros/scicos_scicos/script2var.sci
scilab/modules/scicos/sci_gateway/cpp/sci_scicosim.cpp
scilab/modules/scicos/src/c/scicos.c
scilab/modules/scicos/src/cpp/createblklist.cpp
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp
scilab/modules/types/sci_gateway/cpp/sci_fieldnames.cpp
scilab/modules/xcos/tests/nonreg_tests/bug_13396.unix.dia.ref
scilab/modules/xcos/tests/unit_tests/computational_functions.dia.ref
scilab/modules/xcos/tests/unit_tests/computational_functions.tst
scilab/modules/xcos/tests/unit_tests/fromws_c.dia.ref
scilab/modules/xcos/tests/unit_tests/fromws_tows_c.dia.ref
scilab/modules/xcos/tests/unit_tests/post_xcos_simulate.dia.ref