Subject: | Random Test Failures due to unexpected array order |
http://www.cpantesters.org/distro/C/Class-Discover.html
http://www.nntp.perl.org/group/perl.cpan.testers/2009/08/msg4940109.html
This replicates the test failure I'm seeing:
# Failed test 'Found files'
# at t/simple.t line 23.
#
+----+--------------------------------+----+--------------------------------+
# | Elt|Got | Elt|Expected
|
#
+----+--------------------------------+----+--------------------------------+
# | 0|[ | 0|[
|
# | 1| { | 1| {
|
# * 2| MyClass2 => { * |
|
# * 3| file => 'lib/Class2.pm', * |
|
# * 4| type => 'class' * |
|
# * 5| } * |
|
# * 6| }, * |
|
# * 7| { * |
|
# | 8| MyClass => { | 2| MyClass => {
|
# | 9| file => 'lib/Class1.pm', | 3| file =>
'lib/Class1.pm', |
# | 10| type => 'class', | 4| type => 'class',
|
# | 11| version => '0.03_a' | 5| version => '0.03_a'
|
# | | * 6| }
*
# | | * 7| },
*
# | | * 8| {
*
# | | * 9| MyClass2 => {
*
# | | * 10| file =>
'lib/Class2.pm', *
# | | * 11| type => 'class'
*
# | 12| } | 12| }
|
# | 13| } | 13| }
|
# | 14|] | 14|]
|
#
+----+--------------------------------+----+--------------------------------+
# Looks like you failed 1 test of 5.
I would *imagine* all thats needed here is to sort it before testing.