diff scripts/testfun/assert.m @ 8538:f4a4f914462e

assert.m: use isfield instead of struct_contains
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2009 06:58:44 -0500
parents cadc73247d65
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/testfun/assert.m
+++ b/scripts/testfun/assert.m
@@ -118,7 +118,7 @@
 	  empty = numel (cond) == 0;
 	  normal = numel (cond) == 1;
 	  for [v, k] = cond
-	    if (! struct_contains (expected, k))
+	    if (! isfield (expected, k))
 	      error ();
 	    endif
 	    if (empty)