Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50b1578e19
commit
393391965c
275 changed files with 14004 additions and 5 deletions
61
Examples/test-suite/octave/using_inherit_runme.m
Normal file
61
Examples/test-suite/octave/using_inherit_runme.m
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
using_inherit
|
||||
|
||||
b = Bar();
|
||||
if (b.test(3) != 3)
|
||||
error("Bar::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 3.5)
|
||||
error("Bar::test(double)")
|
||||
endif
|
||||
|
||||
|
||||
b = Bar2();
|
||||
if (b.test(3) != 6)
|
||||
error("Bar2::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 7.0)
|
||||
error("Bar2::test(double)")
|
||||
endif
|
||||
|
||||
|
||||
b = Bar3();
|
||||
if (b.test(3) != 6)
|
||||
error("Bar3::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 7.0)
|
||||
error("Bar3::test(double)")
|
||||
endif
|
||||
|
||||
|
||||
b = Bar4();
|
||||
if (b.test(3) != 6)
|
||||
error("Bar4::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 7.0)
|
||||
error("Bar4::test(double)")
|
||||
endif
|
||||
|
||||
|
||||
b = Fred1();
|
||||
if (b.test(3) != 3)
|
||||
error("Fred1::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 7.0)
|
||||
error("Fred1::test(double)")
|
||||
endif
|
||||
|
||||
|
||||
b = Fred2();
|
||||
if (b.test(3) != 3)
|
||||
error("Fred2::test(int)")
|
||||
endif
|
||||
|
||||
if (b.test(3.5) != 7.0)
|
||||
error("Fred2::test(double)")
|
||||
endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue