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
21
Examples/test-suite/octave/template_ns_runme.m
Normal file
21
Examples/test-suite/octave/template_ns_runme.m
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
template_ns
|
||||
p1 = pairii(2,3);
|
||||
p2 = pairii(p1);
|
||||
|
||||
if (p2.first != 2)
|
||||
error
|
||||
endif
|
||||
if (p2.second != 3)
|
||||
error
|
||||
endif
|
||||
|
||||
p3 = pairdd(3.5,2.5);
|
||||
p4 = pairdd(p3);
|
||||
|
||||
if (p4.first != 3.5)
|
||||
error
|
||||
endif
|
||||
|
||||
if (p4.second != 2.5)
|
||||
error
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue