fix prod : variables that are returned are binding link with outType 96/14996/11
authorSylvain GENIN <sylvain.genin@scilab-enterprises.com>
Thu, 7 Aug 2014 08:45:40 +0000 (10:45 +0200)
committerVincent COUVERT <vincent.couvert@scilab-enterprises.com>
Fri, 26 Sep 2014 08:31:40 +0000 (10:31 +0200)
commit1aa144d858bd9a010ed6dc6de8035ede7f551977
tree51f75f72611c63db4576582a128d9f2f35b92f8b
parentcf27ac26ca1e4cb245d9eacb153afc1721443aff
fix prod : variables that are returned are binding link with outType

i=uint8([1 10;254 9]);

//fail: type return is bad
assert_checkequal(prod(i, 3, "native"), double(i));

// type return is good
assert_checkequal(prod(i, 3, "native"), i);
i=uint8([1 10;254 9]);
typeof(prod(i, 3, "native"))//uint8
typeof(prod(i, 3))          //uint8
typeof(prod(i))             //uint8
typeof(prod(i, 3, "double"))//double

//
test_run("elementary_functions","prod",["no_check_error_output" ]);

Change-Id: Ia133692455a161445d5d8d2feaa5828cea4599a1
scilab/modules/elementary_functions/tests/unit_tests/prod.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/prod.tst
scilab/modules/integer/src/fortran/i_prod.f