runme file for vectors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f7107bfea8
commit
28c1e9b437
1 changed files with 11 additions and 0 deletions
11
Examples/test-suite/scilab/li_std_vector_runme.sci
Normal file
11
Examples/test-suite/scilab/li_std_vector_runme.sci
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
iv = new_DoubleVector();
|
||||
for i=1:4
|
||||
iv(i) = i;
|
||||
end
|
||||
x = average(iv);
|
||||
|
||||
if x <> 2.5 then swigtesterror(); end
|
||||
exit
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue