Mercurial > hg > octave-terminal
changeset 7077:525cd5f47ab6
[project @ 2007-10-29 19:12:28 by jwe]
author | jwe |
---|---|
date | Mon, 29 Oct 2007 19:12:28 +0000 |
parents | 0bade2dc44a1 |
children | 405cf85b435c |
files | scripts/set/ismember.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/set/ismember.m +++ b/scripts/set/ismember.m @@ -119,9 +119,11 @@ %!assert (ismember ({''}, {'abc', 'def'}), false); %!assert (ismember ('abc', {'abc', 'def'}), true); %!assert (isempty (ismember ([], [1, 2])), true); +%!assert (isempty (ismember ({}, {'a', 'b'})), true); %!xtest assert (ismember ('', {'abc', 'def'}), false); %!xtest fail ('ismember ([], {1, 2})', 'error:.*'); %!fail ('ismember ({[]}, {1, 2})', 'error:.*'); +%!xtest fail ('ismember ({}, {1, 2})', 'error:.*'); %!assert (ismember ({'foo', 'bar'}, {'foobar'}), logical ([0, 0])) %!assert (ismember ({'foo'}, {'foobar'}), false) %!assert (ismember ({'bar'}, {'foobar'}), false) @@ -129,3 +131,4 @@ %!assert (ismember ({'foo', 'bar'}, {'foobar', 'bar'}), logical ([0, 1])) %!assert (ismember ({'xfb', 'f', 'b'}, {'fb', 'b'}), logical ([0, 0, 1])) %!assert (ismember ("1", "0123456789."), true) +%!assert (ismember ("1.1", "0123456789."), logical ([1, 1, 1]))