diff --git a/Examples/scilab/contract/runme.sci b/Examples/scilab/contract/runme.sci index 1ae8504c4..2cad2b9ba 100644 --- a/Examples/scilab/contract/runme.sci +++ b/Examples/scilab/contract/runme.sci @@ -27,14 +27,15 @@ 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 - printf("%s\n", lasterror()); + end try fact(-4); + error("fact(-4) must provoke a RunTimeError"); catch - printf("%s\n", lasterror()); end exit