Skip Menu |

This queue is for tickets about the JSON-HPack CPAN distribution.

Report information
The Basics
Id: 96496
Status: open
Priority: 0/
Queue: JSON-HPack

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.0.3
Fixed in: (no value)



Subject: test failure
Hi, t/2.unpack.t fails for the second test: cmp_deeply( $packed, $pa ); since $pa may have a different order than $packed for each attribute. $packed $pa 0 ARRAY(0x15fd1e0) 0 ARRAY(0x1651f80) 0 3 0 3 1 'name' 1 'label' 2 'superhero' 2 'superhero' 3 'label' 3 'name' 4 'Peter Parker' 4 'Marvel' 5 'Spiderman' 5 'Spiderman' 6 'Marvel' 6 'Peter Parker' 7 'Bruce Wayne' 7 'DC' 8 'Batman' 8 'Batman' 9 'DC' 9 'Bruce Wayne' 10 'Bruce Banter' 10 'Marvel' 11 'Hulk' 11 'Hulk' 12 'Marvel' 12 'Bruce Banter' 13 'John Logan' 13 'Marvel' 14 'Wolverine' 14 'Wolverine' 15 'Marvel' 15 'John Logan' So the test cannot compare them as array, anyway they are both right hpacked,
On 2014-06-16 23:48:49, nonsolosoft@diff.org wrote: Show quoted text
> Hi, > > t/2.unpack.t fails for the second test: > > cmp_deeply( $packed, $pa );
cmp_bag($packed, $pa);