Subject: | Tests fail due to randomized hashes in perl 5.18 |
Perl 5.18 randomize hashes, so the t/001_tests.t test fails randomly like this:
# Failed test at t/001_tests.t line 122.
# got: ' 12345678
# Aliceauthor��lengtspam.mp3'
# expected: ' 12345��length
# Aliceauthospam.mp3'
The test code is:
is( freeze(bdecode('d8:spam.mp3d6:author5:Alice6:lengthi100000eee')),
freeze({"spam.mp3" => {author => 'Alice', length => 100000}}) );
Random hash keys reorders frozen string value.