Mercurial > hg > octave-lyh
diff scripts/testfun/assert.m @ 6455:e68b6921b221
[project @ 2007-03-26 16:02:04 by jwe]
author | jwe |
---|---|
date | Mon, 26 Mar 2007 16:02:04 +0000 |
parents | e8c42df3d234 |
children | 76a1a953533d |
line wrap: on
line diff
--- a/scripts/testfun/assert.m +++ b/scripts/testfun/assert.m @@ -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([]))