On Thu, Feb 27, 2003 at 09:21:09PM +, Fergal Daly wrote:
I am already not yet convinced. In particular, it makes this sort of test
more difficult than it needs be:
is_deeply($obj, { foo = 42, bar = 23 });
Absolutely, but there is currently no way to do this
is_deeply($obj,
On Thu, Feb 27, 2003 at 10:03:50PM +, Fergal Daly wrote:
- let _deep_check take it's cue from the second argument. If the second
argument is blessed then be strict about the classes, if it's unblessed
then ignore the classes. This should happen at all levels in the
structures.
I'd go for feature, not bug. For me is_deeply has always been for
testing structure. We have isa_ok for checking class identity.
Having one that tested for both might be useful, but I would not change
the behaviour of is_deeply.
Adrian
On Thursday, February 27, 2003, at 05:32 pm, Fergal Daly
True. I usually expose deep objects by methods rather than hash
access, so it's not really a problem for the majority of my code.
Adrian
On Friday, February 28, 2003, at 03:54 pm, [EMAIL PROTECTED] wrote:
On Fri, Feb 28, 2003 at 11:51:07AM +, Adrian Howard wrote:
Option three.
On Thursday 27 February 2003 20:54, [EMAIL PROTECTED] wrote:
On Thu, Feb 27, 2003 at 05:32:42PM +, Fergal Daly wrote:
I think that although a test that ignores blessed classes could be handy
in some circumstances (ie programming in general), I reckon in the
context of test suites it's a