Fix test after https://codereview.scilab.org/#/c/13684/ 35/13735/1
Vincent COUVERT [Thu, 13 Feb 2014 19:44:35 +0000 (20:44 +0100)]
Change-Id: I6b886bff4cedd24e66fdf45d2002db77ea15de66

scilab/modules/elementary_functions/tests/unit_tests/prod.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/prod.tst

index 83f0d09..ebfb303 100644 (file)
@@ -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);
index 3923376..00e10d8 100644 (file)
@@ -213,7 +213,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);