kingpong / perl-Test-Spec

rSpec-like test system for Perl
http://search.cpan.org/dist/Test-Spec/lib/Test/Spec.pm
30 stars 17 forks source link

describe blocks not executing in order #28

Closed mla closed 9 years ago

mla commented 9 years ago

Hi. Thanks for Test::Spec. It's really helping to make my tests more readable.

I think I found a problem in the order that blocks are executed, unless I'm missing something. Looks like the top-level containers in the %_Package_Contexts do not have have their order maintained.

I added a test, t/ordering.t, that demonstrates the problem.

All I did was change it to use the _ixhash() function to create those containers rather than a naked hash.

andyjones commented 9 years ago

Thanks! I'll take a look when I get home tonight

andyjones commented 9 years ago

Thanks, 0.51 should be on cpan shortly