Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 85700
Status: rejected
Priority: 0/
Queue: Test-Deep

People
Owner: Nobody in particular
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.110
Fixed in: (no value)



Subject: superhash is not "recursive"
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.13-11513-1369833661-1689.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 231
Download (untitled) / with headers
text/plain 231b
this cmp_deeply({x => {y => 3, z => 4}, a => 1, b => 2}, superhashof({x => {y => 3}, a => 1})); fails with # Comparing hash keys of $data->{"x"} # Extra: 'z' not sure if it's a feature or bug, documentation is vague for this.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.13-11513-1369833661-1689.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.13-11513-1369833661-1689.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-12947-1376427210-622.85700-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 429
Download (untitled) / with headers
text/plain 429b
On 2013-05-29 06:21:01, vsespb wrote: Show quoted text
> this > > cmp_deeply({x => {y => 3, z => 4}, a => 1, b => 2}, superhashof({x => > {y => 3}, a => 1})); > > fails with > > # Comparing hash keys of $data->{"x"} > # Extra: 'z' > > > not sure if it's a feature or bug, documentation is vague for this.
That's a feature. Sub-components of the data are compared literally unless they themselves are wrapped with modifiers like superhash.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.13-11513-1369833661-1689.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.13-11513-1369833661-1689.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-3437-1385823164-468.85700-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 17
Agreed. -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.