Mercurial > hg > octave-lyh
changeset 6664:c6e7b03af779
[project @ 2007-05-24 21:59:12 by jwe]
author | jwe |
---|---|
date | Thu, 24 May 2007 21:59:12 +0000 |
parents | f4938870a0a7 |
children | cfb849d6f314 |
files | scripts/ChangeLog scripts/set/ismember.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-05-24 John W. Eaton <jwe@octave.org> + + * set/ismember.m: Quote first arg of "fail" tests. + 2007-05-24 David Bateman <dbateman@free.fr> * pkg/pkg.m (pkg:rebuild): Thinko in rebuild logic.
--- a/scripts/set/ismember.m +++ b/scripts/set/ismember.m @@ -121,8 +121,8 @@ %!assert (ismember ('abc', {'abc', 'def'}), true); %!assert (isempty (ismember ([], [1, 2])), true); %!assert (ismember ('', {'abc', 'def'}), false); -%!fail (ismember ([], {1, 2}), 'error:.*'); -%!fail (ismember ({[]}, {1, 2}), 'error:.*'); +%!fail ('ismember ([], {1, 2})', 'error:.*'); +%!fail ('ismember ({[]}, {1, 2})', 'error:.*'); %!assert (ismember ({'foo', 'bar'}, {'foobar'}), logical ([0, 0])) %!assert (ismember ({'foo'}, {'foobar'}), false) %!assert (ismember ({'bar'}, {'foobar'}), false)