Mercurial > hg > octave-kai
changeset 9498:f7cc8f30f3b8
Added test for setxor
author | Pieter Eendebak <pieter.eendebak@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 14:39:02 +0200 |
parents | 54ae52abd4c9 |
children | d5570d4b1116 |
files | scripts/ChangeLog scripts/set/setxor.m |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -6,6 +6,10 @@ * geometry/griddata.m: Linearize arrays. +2009-08-04 Pieter Eendebak <pieter.eendebak@gmail.com> + + * set/setxor.m: Added test for cell arrays of strings. + 2009-08-05 Olli Saarela <olli.saarela@gmail.com> * plot/__gnuplot_get_var__.m: If read fails to return data, sleep
--- a/scripts/set/setxor.m +++ b/scripts/set/setxor.m @@ -93,8 +93,10 @@ endfunction %!assert(setxor([1,2,3],[2,3,4]),[1,4]) +%!assert(setxor({'a'}, {'a', 'b'}), {'b'}); %!test %! a = [3, 1, 4, 1, 5]; b = [1, 2, 3, 4]; %! [y, ia, ib] = setxor (a, b.'); %! assert(y, [2, 5]); %! assert(y, sort([a(ia), b(ib)])); +