Redefine SWIG_Error and add testing code in examples\scilab\contract
This commit is contained in:
parent
e22184553a
commit
680374f251
2 changed files with 53 additions and 4 deletions
|
|
@ -23,6 +23,14 @@ Foo_set (3.1415926);
|
|||
// See if the change took effect
|
||||
printf("Foo = %f\n", Foo_get());
|
||||
|
||||
|
||||
printf("Foo = %f\n", Foo_get());
|
||||
// Check error message if violate contract
|
||||
g = gcd(-42,105);
|
||||
fact(-4);
|
||||
|
||||
|
||||
|
||||
exit
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue