fix failing unit tests with Scilab V6

This commit is contained in:
Simon Marchetto 2015-01-12 16:20:27 +01:00
commit 0b07622a11
7 changed files with 67 additions and 79 deletions

View file

@ -29,18 +29,15 @@ Foo_set(3.1415926);
// See if the change took effect
printf("Foo = %f\n", Foo_get());
// Check error message if violate contract
try
g = gcd(-42, 105);
error("g = gcd(-42, 105) must provoke a RunTimeError");
catch
// Check error messages when violating contract
ierr = execstr('gcd(-42, 105)', 'errcatch');
if ierr <> 20003 then
error("gcd(-42, 105) must provoke a RunTimeError")
end
try
fact(-4);
error("fact(-4) must provoke a RunTimeError");
catch
ierr = execstr('fact(-4)', 'errcatch');
if ierr <> 20003 then
error("fact(-4) must provoke a RunTimeError")
end
exit

View file

@ -33,10 +33,5 @@ for i = 1:4
end;
disp(half(v));
// now halve a wrapped std::vector<double> in place
halve_in_place(v);
disp(v);
exit