Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 7357
Status: rejected
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: gaal [...] forum2.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.47
Fixed in: (no value)



Subject: Test::Mode::is_deeply does not support globjects
is_deeply (more precisely, _deep_check) does not allow for the possibility of complex structures that are based on a glob and are (e.g.) both an ARRAY *and* a HASH. This is because the logic of _deep_check is basically a switch without fallthrough; if an object is-an ARRAY, the rest of the comparisons will not be made. The fix is to allow fallthrough, but detect and propagate errors immediately. I'll gladly submit a patch if the maintainers indicate they are willing to apply it (globjects are something of an obscure feature).
Date: Sat, 16 Oct 2004 23:01:11 -0400
From: Michael G Schwern <schwern [...] gmail.com>
To: bug-test-simple [...] rt.cpan.org
Subject: Re: [cpan #7357] Test::Mode::is_deeply does not support globjects
RT-Send-Cc:
On Sun, 15 Aug 2004 12:37:20 -0400 (EDT), via RT <bug-test-simple@rt.cpan.org> wrote: Show quoted text
> The fix is to allow fallthrough, but detect and propagate errors immediately. I'll gladly submit a patch if the maintainers indicate they are willing to apply it (globjects are something of an obscure feature).
They sure are. I'm not even sure how to handle their comparision. If you've got an idea of how to handle it, go for it.
On Sun Aug 15 09:37:19 2004, GAAL wrote: Show quoted text
> is_deeply (more precisely, _deep_check) does not allow for the > possibility of complex structures that are based on a glob and are > (e.g.) both an ARRAY *and* a HASH. > > This is because the logic of _deep_check is basically a switch without > fallthrough; if an object is-an ARRAY, the rest of the comparisons > will not be made. > > The fix is to allow fallthrough, but detect and propagate errors > immediately. I'll gladly submit a patch if the maintainers indicate > they are willing to apply it (globjects are something of an obscure > feature).
This is very obscure. I am closing this ancient ticket. If anyone still wants this feature please re-open on github.