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	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([]))