From octave-maintainers-request at bevo dot che dot wisc dot edu Sat Apr 21 07:24:50 2001 Subject: Re: request for "assert" From: Paul Kienzle To: "Joseph P. Skudlarek" Cc: octave-maintainers at bevo dot che dot wisc dot edu Date: Sat, 21 Apr 2001 13:24:32 +0100 I've got a version at: http://users.powernet.co.uk/kienzle/octave/matcompat/scripts/testfun/assert.m It recursively walks structure trees, but doesn't handle lists. Feel free to extend it. Ideally, each type should provide a comparator which determines if two instances of that type have the same value within some error bound so that assert would also work for user defined types. Add an isequal method to the octave_value class? Paul Kienzle pkienzle at kienzle dot powernet dot co dot uk On Fri, Apr 20, 2001 at 09:22:31PM -0700, Joseph P. Skudlarek wrote: > Hi. An assert is a wonderful thing. It's easy for a user to add, but > given the utility and the benefit, it might be better if it were built > in -- more people might use it. So, how 'bout considering it? Thanks. > /Jskud > >