X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_self_introspection.t;h=f2dcff24bc8c3f75048337a30af399b99d12fb2a;hb=e5ca9cbbee9f147fb5b3c77e278b9969c3254f82;hp=796a56133fa02b4e1d795b9fae8079013fc03a00;hpb=c0ae440b63d5ba5acacb525b336ec78c36841fd9;p=gitmo%2FClass-MOP.git diff --git a/t/010_self_introspection.t b/t/010_self_introspection.t index 796a561..f2dcff2 100644 --- a/t/010_self_introspection.t +++ b/t/010_self_introspection.t @@ -1,5 +1,3 @@ -#!/usr/bin/perl - use strict; use warnings; @@ -91,7 +89,7 @@ my @class_mop_class_methods = qw( is_deeply([ sort $class_mop_class_meta->get_method_list ], [ sort @class_mop_class_methods ], '... got the correct method list for class'); -foreach my $method_name (@class_mop_class_methods) { +foreach my $method_name (sort @class_mop_class_methods) { ok($class_mop_class_meta->has_method($method_name), '... Class::MOP::Class->has_method(' . $method_name . ')'); { no strict 'refs'; @@ -105,7 +103,7 @@ foreach my $method_name (@class_mop_class_methods) { is_deeply([ sort $class_mop_package_meta->get_method_list ], [ sort @class_mop_package_methods ], '... got the correct method list for package'); -foreach my $method_name (@class_mop_package_methods) { +foreach my $method_name (sort @class_mop_package_methods) { ok($class_mop_package_meta->has_method($method_name), '... Class::MOP::Package->has_method(' . $method_name . ')'); { no strict 'refs'; @@ -119,7 +117,7 @@ foreach my $method_name (@class_mop_package_methods) { is_deeply([ sort $class_mop_module_meta->get_method_list ], [ sort @class_mop_module_methods ], '... got the correct method list for module'); -foreach my $method_name (@class_mop_module_methods) { +foreach my $method_name (sort @class_mop_module_methods) { ok($class_mop_module_meta->has_method($method_name), '... Class::MOP::Module->has_method(' . $method_name . ')'); { no strict 'refs'; @@ -175,7 +173,7 @@ is_deeply( [ sort @class_mop_class_attributes ], '... got the right list of attributes'); -foreach my $attribute_name (@class_mop_class_attributes) { +foreach my $attribute_name (sort @class_mop_class_attributes) { ok($class_mop_class_meta->has_attribute($attribute_name), '... Class::MOP::Class->has_attribute(' . $attribute_name . ')'); isa_ok($class_mop_class_meta->get_attribute($attribute_name), 'Class::MOP::Attribute'); } @@ -192,7 +190,7 @@ is_deeply( [ sort @class_mop_package_attributes ], '... got the right list of attributes'); -foreach my $attribute_name (@class_mop_package_attributes) { +foreach my $attribute_name (sort @class_mop_package_attributes) { ok($class_mop_package_meta->has_attribute($attribute_name), '... Class::MOP::Package->has_attribute(' . $attribute_name . ')'); isa_ok($class_mop_package_meta->get_attribute($attribute_name), 'Class::MOP::Attribute'); } @@ -209,7 +207,7 @@ is_deeply( [ sort @class_mop_module_attributes ], '... got the right list of attributes'); -foreach my $attribute_name (@class_mop_module_attributes) { +foreach my $attribute_name (sort @class_mop_module_attributes) { ok($class_mop_module_meta->has_attribute($attribute_name), '... Class::MOP::Module->has_attribute(' . $attribute_name . ')'); isa_ok($class_mop_module_meta->get_attribute($attribute_name), 'Class::MOP::Attribute'); }