Skip to content

Commit

Permalink
scilab: fix array_member test
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Marchetto committed Jun 16, 2014
1 parent 8a2472c commit 423b52a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Examples/test-suite/scilab/array_member_runme.sci
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ exec("swigtest.start", -1);

f = new_Foo();
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');
if ~isequal(Foo_text_get(f), 'abcdefgh') then swigtesterror(); end
Foo_text_set(f, "abcdefgh");
checkequal(Foo_text_get(f), "abcdefgh", "Foo_text_get()");
delete_Foo(f);

m = new_MyBuff();
MyBuff_x_set(m, uint8([0:11]));
if ~isequal(MyBuff_x_get(m), uint8([0:11])) then swigtesterror(); end
MyBuff_x_set(m, [0:11]);
checkequal(MyBuff_x_get(m), [0:11], "MyBuff_x_get()");
delete_MyBuff(m);

exec("swigtest.quit", -1);

0 comments on commit 423b52a

Please sign in to comment.