fix prod : variables that are returned are binding link with outType
[scilab.git] / scilab / modules / elementary_functions / tests / unit_tests / prod.dia.ref
index 83f0d09..5d647b3 100644 (file)
@@ -162,7 +162,7 @@ for typ=T
     assert_checkequal(prod(i, "*", typ(:)), uint8(76));
     assert_checkequal(prod(i, 1, typ(:)), uint8([254 90]));
     assert_checkequal(prod(i, 2, typ(:)), uint8([10;238]));
-    assert_checkequal(prod(i, 3, typ(:)), double(i));
+    assert_checkequal(prod(i, 3, typ(:)), i);
 end
 assert_checkequal(prod(i, "double"), 22860);
 assert_checkequal(prod(i, "*", "double"), 22860);
@@ -178,7 +178,7 @@ for typ=T
     assert_checkequal(prod(i, 1, typ(:)), hypermat([1,2,2],uint8([254;90;1;1])));
     assert_checkequal(prod(i, 2, typ(:)), hypermat([2,1,2],uint8([10;238;1;1])));
     assert_checkequal(prod(i, 3, typ(:)), uint8([1,10;254,9]));
-    assert_checkequal(prod(i, 5, typ(:)), double(i));
+    assert_checkequal(prod(i, 5, typ(:)), i);
 end
 assert_checkequal(prod(i, "double"), 22860);
 assert_checkequal(prod(i, "*", "double"), 22860);