add overload_extend and overload_extendc testcases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d433e27f15
commit
39f1193f87
4 changed files with 204 additions and 8 deletions
9
Examples/test-suite/scilab/overload_extend_runme.sci
Normal file
9
Examples/test-suite/scilab/overload_extend_runme.sci
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
exec loader.sce
|
||||
|
||||
x = new_Foo();
|
||||
if Foo_test(x) <> 0 then pause, end
|
||||
if Foo_test(x, 1) <> 1 then pause, end
|
||||
if Foo_test(x, 2, 3) <> 5 then pause, end
|
||||
if Foo_test(x, "Hello, swig!") <> 2 then pause, end
|
||||
|
||||
exit
|
||||
11
Examples/test-suite/scilab/overload_extendc_runme.sci
Normal file
11
Examples/test-suite/scilab/overload_extendc_runme.sci
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exec loader.sce
|
||||
|
||||
x = new_Foo();
|
||||
if Foo_test(x, 1) <> 1 then pause, end
|
||||
if Foo_test(x, "Hello swig!") <> 2 then pause, end
|
||||
if Foo_test(x, 2, 3) <> 3 then pause, end
|
||||
if Foo_test(x, x) <> 30 then pause, end
|
||||
if Foo_test(x, x, 4) <> 24 then pause, end
|
||||
if Foo_test(x, x, 4, 5) <> 9 then pause, end
|
||||
|
||||
exit
|
||||
Loading…
Add table
Add a link
Reference in a new issue