changeset 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 17ef48c699a5
children 67a632417879
files scripts/ChangeLog scripts/testfun/assert.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-20  John W. Eaton  <jwe@octave.org>
+
+	* testfun/assert.m: Use isfield instead of struct_contains.
+
 2009-01-17 Ben Abbott <bpabbott@mac.com>
 
 	* general/cart2sph.m, cart2pol.m, sph2cart.m pol2cart.m:
--- 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)