diff options
author | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-03-17 12:06:43 +0100 |
---|---|---|
committer | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-03-17 12:06:43 +0100 |
commit | 561d6fb4c7de3056429c4a72a91e9eac299355d1 (patch) | |
tree | 1fd08e0a6cf9df405d6079124f7b45b7edd42ca0 | |
parent | d1dface31c34ddbc58853eb0fda0a1f7aaf123bb (diff) | |
download | swig-561d6fb4c7de3056429c4a72a91e9eac299355d1.tar.gz |
scilab: fix matrix checking in tests (<> => isequal)
-rw-r--r-- | Examples/test-suite/scilab/li_std_set_as_argument_runme.sci | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Examples/test-suite/scilab/li_std_set_as_argument_runme.sci b/Examples/test-suite/scilab/li_std_set_as_argument_runme.sci index 4adfd0e54..fc76a8b01 100644 --- a/Examples/test-suite/scilab/li_std_set_as_argument_runme.sci +++ b/Examples/test-suite/scilab/li_std_set_as_argument_runme.sci @@ -7,29 +7,29 @@ exec("swigtest.start", -1); // Example of passing matrices of int as set arguments of C++ functions."); // get a set of int {1...4} from create_integer_set():"); iset = create_integer_set(1, 4); -if ~exists("iset") | (iset <> [1 2 3 4]) then swigtesterror(); end +if ~exists("iset") | ~isequal(iset, [1 2 3 4]) then swigtesterror(); end // get the sum of this set elements with sum_integer_set():") isum = sum_integer_set(int32(iset)); if ~exists("isum") | (isum <> 10) then swigtesterror(); end // get a set of of int {3...6} from create_integer_set():"); iset2 = create_integer_set(3, 6); -if ~exists("iset2") | (iset2 <> [3 4 5 6]) then swigtesterror(); end +if ~exists("iset2") | ~isequal(iset2, [3 4 5 6]) then swigtesterror(); end // concat the two sets with concat_integer_set():"); iset3 = concat_integer_set(int32(iset), int32(iset2)); -if ~exists("iset3") | (iset3 <> [1 2 3 4 5 6]) then swigtesterror(); end +if ~exists("iset3") | ~isequal(iset3, [1 2 3 4 5 6]) then swigtesterror(); end // string sets // Example of passing matrices of string as set arguments of C++ functions."); // get a set of string {''aa'', ''bb'', ''cc'', ''dd''} with create_string_set():"); sset = create_string_set("aa bb cc dd"); -if ~exists("sset") | (sset <> ["aa" "bb" "cc" "dd"]) then swigtesterror(); end +if ~exists("sset") | ~isequal(sset, ["aa" "bb" "cc" "dd"]) then swigtesterror(); end // get a set of string {''cc'', ''dd'', ''ee'', ''ff''} with create_string_set():"); sset2 = create_string_set("cc dd ee ff"); -if ~exists("sset2") | (sset2 <> ["cc" "dd" "ee" "ff"]) then swigtesterror(); end +if ~exists("sset2") | ~isequal(sset2, ["cc" "dd" "ee" "ff"]) then swigtesterror(); end // concat the two sets with concat_string_set():"); sset3 = concat_string_set(sset, sset2); -if ~exists("sset3") | (sset3 <> ["aa" "bb" "cc" "dd" "ee" "ff"]) then swigtesterror(); end +if ~exists("sset3") | ~isequal(sset3, ["aa" "bb" "cc" "dd" "ee" "ff"]) then swigtesterror(); end exec("swigtest.quit", -1); |