# HG changeset patch # User jwe # Date 1174924924 0 # Node ID e68b6921b2219773f8b06daeae887bb1ac6c5c36 # Parent 7c9b4a6e090b8e7eac412b9b105a9f1323e3af7f [project @ 2007-03-26 16:02:04 by jwe] diff -r 7c9b4a6e090b -r e68b6921b221 scripts/ChangeLog --- a/scripts/ChangeLog Mon Mar 26 14:28:24 2007 +0000 +++ b/scripts/ChangeLog Mon Mar 26 16:02:04 2007 +0000 @@ -1,3 +1,8 @@ +2007-03-26 Kim Hansen + + * testfun/assert.m: Delete special check for empty objects. + Add test. + 2007-03-26 John W. Eaton * plot/drawnow.m: Exit early if call is recursive. diff -r 7c9b4a6e090b -r e68b6921b221 scripts/testfun/assert.m --- a/scripts/testfun/assert.m Mon Mar 26 14:28:24 2007 +0000 +++ b/scripts/testfun/assert.m Mon Mar 26 16:02:04 2007 +0000 @@ -118,9 +118,6 @@ end endif - elseif (isempty (expected)) - iserror = (any (size (cond) != size (expected))); - elseif (ndims (cond) != ndims (expected) || any (size (cond) != size (expected))) iserror = 1; @@ -197,6 +194,7 @@ %!assert(zeros(3,0),zeros(3,0)) %!error assert(zeros(3,0),zeros(0,2)) %!error assert(zeros(3,0),[]) +%!fail("assert(zeros(2,0,2),zeros(2,0))", "Dimensions don't match") ## conditions %!assert(isempty([]))