Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Truly randomized keys() in perl 5.17 - a challenge for testing?

by saintmike (Vicar)
on Oct 02, 2013 at 14:49 UTC ( #1056617=note: print w/ replies, xml ) Need Help??


in reply to Re: Truly randomized keys() in perl 5.17 - a challenge for testing?
in thread Truly randomized keys() in perl 5.17 - a challenge for testing?

Apparently, that's not how it works, otherwise

https://rt.cpan.org/Public/Bug/Display.html?id=81570

would not be failing. What the code does is run keys() once to determine the order and one more time to verify the application's result according to the first run:

https://github.com/mschilli/php-httpbuildquery-perl/blob/master/t/001Basic.t

There's no insertions in between, and yet it started failing with perl-5.17+ on some systems.


Comment on Re^2: Truly randomized keys() in perl 5.17 - a challenge for testing?
Re^3: Truly randomized keys() in perl 5.17 - a challenge for testing?
by ikegami (Pope) on Oct 05, 2013 at 00:58 UTC
    You are mistaken. That file never calls keys twice on the same hash. It call keys on two different hashes (containing the same data). That code has been buggy since 5.8.1. The bug is just more likely to occur now.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-09-19 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (145 votes), past polls