scilab: fix array_member test

This commit is contained in:
Simon Marchetto 2014-06-16 17:00:27 +02:00
commit 423b52aa05

View file

@ -2,15 +2,15 @@ exec("swigtest.start", -1);
f = new_Foo(); f = new_Foo();
Foo_data_set(f, [0:7]); Foo_data_set(f, [0:7]);
if ~isequal(Foo_data_get(f), [0:7]) then swigtesterror(); end checkequal(Foo_data_get(f), [0:7], "Foo_data_get()");
Foo_text_set(f, 'abcdefgh'); Foo_text_set(f, "abcdefgh");
if ~isequal(Foo_text_get(f), 'abcdefgh') then swigtesterror(); end checkequal(Foo_text_get(f), "abcdefgh", "Foo_text_get()");
delete_Foo(f); delete_Foo(f);
m = new_MyBuff(); m = new_MyBuff();
MyBuff_x_set(m, uint8([0:11])); MyBuff_x_set(m, [0:11]);
if ~isequal(MyBuff_x_get(m), uint8([0:11])) then swigtesterror(); end checkequal(MyBuff_x_get(m), [0:11], "MyBuff_x_get()");
delete_MyBuff(m); delete_MyBuff(m);
exec("swigtest.quit", -1); exec("swigtest.quit", -1);