Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/flip.t fails under perl 5.18 due to hash ordering assumptions #260

Closed
chuckadams opened this issue May 29, 2013 · 1 comment
Closed

t/flip.t fails under perl 5.18 due to hash ordering assumptions #260

chuckadams opened this issue May 29, 2013 · 1 comment

Comments

@chuckadams
Copy link

Test output below. I'd make a pull request, but I'm a bit pressed for time and the fix is pretty obvious: simply remove the duplicate values from the test hash, since there's no deterministic result you'll get from flipping such hashes as long as key order is randomized.

t/flip.t ..................... 1/? 
#   Failed test at t/flip.t line 12.
#     Structures begin differing at:
#          $got->{bar} = '2'
#     $expected->{bar} = '3'

#   Failed test 'Returns hash in list context'
#   at t/flip.t line 16.
#     Structures begin differing at:
#          $got->{bar} = '2'
#     $expected->{bar} = '3'
# Looks like you failed 2 tests of 3.
t/flip.t ..................... Dubious, test returned 2 (wstat 512, 0x200)
@schwern
Copy link
Contributor

schwern commented Jan 11, 2016

Fixed by #262

@schwern schwern closed this as completed Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants