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

Sorting your keys in your tests would be one way, but it would not detect any bugs where you implicitly rely on sorted keys...

  • Comment on Re: Truly randomized keys() in perl 5.17 - a challenge for testing?

Replies are listed 'Best First'.
Re^2: Truly randomized keys() in perl 5.17 - a challenge for testing?
by QM (Parson) on Sep 30, 2013 at 10:56 UTC
    but it would not detect any bugs where you implicitly rely on sorted keys...
    I hope saintmike isn't relying on implicit key ordering, especially for tests?

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      I did not want to suggest he is but others might be reading this as well... Just jumped to my mind, that there could be code that worked with ordered keys but not otherwise.