X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F203_trait_hash.t;fp=t%2F203_trait_hash.t;h=173e5db4f4a726680050c4442769f3b0c2dc261d;hb=ea8717c9fd7d7f42fd1eb5bfc66a2dbb1a5769d3;hp=8e876b16760fba547af8f7f286a279b2b2ebfb8a;hpb=9486abfa30692ac19a9140b04a5a5e8d60c5d95d;p=gitmo%2FMooseX-AttributeHelpers.git diff --git a/t/203_trait_hash.t b/t/203_trait_hash.t index 8e876b1..173e5db 100644 --- a/t/203_trait_hash.t +++ b/t/203_trait_hash.t @@ -156,10 +156,10 @@ is_deeply($options->provides, { is($options->type_constraint->type_parameter, 'Str', '... got the right container type'); $stuff->set_option( oink => "blah", xxy => "flop" ); -my @key_value = $stuff->key_value; +my @key_value = sort { $a->[0] cmp $b->[0] } $stuff->key_value; is_deeply( \@key_value, - [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ], + [ [ 'oink', 'blah' ], [ 'quantity', 4 ], [ 'xxy', 'flop' ] ], '... got the right key value pairs' );