Test arrays_global added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f603ac10db
commit
5bd8d9c134
1 changed files with 20 additions and 0 deletions
20
Examples/test-suite/scilab/arrays_global_runme.sci
Normal file
20
Examples/test-suite/scilab/arrays_global_runme.sci
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
if array_const_i_get() <> [10, 20] then swingtesterror(); end
|
||||
|
||||
if BeginString_FIX44a_get() <> "FIX.a.a" then swingtesterror(); end
|
||||
if BeginString_FIX44b_get() <> "FIX.b.b" then swingtesterror(); end
|
||||
if BeginString_FIX44c_get() <> "FIX.c.c" then swingtesterror(); end
|
||||
if BeginString_FIX44d_get() <> "FIX.d.d" then swingtesterror(); end
|
||||
if BeginString_FIX44d_get() <> "FIX.d.d" then swingtesterror(); end
|
||||
if BeginString_FIX44b_set(strcat(["12","\0","45"])) <> "" then swingtesterror(); end
|
||||
if BeginString_FIX44b_get() <> "12\045" then swingtesterror(); end
|
||||
if BeginString_FIX44d_get() <> "FIX.d.d" then swingtesterror(); end
|
||||
if BeginString_FIX44e_get() <> "FIX.e.e" then swingtesterror(); end
|
||||
if BeginString_FIX44f_get() <> "FIX.f.f" then swingtesterror(); end
|
||||
|
||||
if test_a("hello","hi","chello","chi") <> "hi" then swingtesterror(); end
|
||||
|
||||
if test_b("1234567","hi") <> "1234567" then swingtesterror(); end
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue